Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"keep" doesn't work with subfolders #33

Open
rhhamburg opened this issue Aug 27, 2014 · 1 comment
Open

"keep" doesn't work with subfolders #33

rhhamburg opened this issue Aug 27, 2014 · 1 comment

Comments

@rhhamburg
Copy link

When I use keep with a folder how is direct in the root directory it works perfect.
My working example:

ftpush: {
    build: {
        auth: {
            host: 'server.com',
            port: 21,
            authKey: 'key'
        },
        src: 'dist',
        dest: '/',
        keep: ['/folder']
    }
}

But if I use keep with a subfolder, all elements in the subfolder and the subfolder itself will be deleted on the server.

I tested it with:

keep: ['/folder/subfolder']
keep: ['/folder/subfolder/']
keep: ['/folder/subfolder/*']
keep: ['/folder/subfolder/**']

but nothing works.

I use Windows 7 and Node.js 0.10.31.

@vlrprbttst
Copy link

have you tried with keep: ['folder'] ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants