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

Files with long name is unexpectedly deleted #1

Open
vousk opened this issue Feb 13, 2016 · 2 comments
Open

Files with long name is unexpectedly deleted #1

vousk opened this issue Feb 13, 2016 · 2 comments

Comments

@vousk
Copy link

vousk commented Feb 13, 2016

Hi

Using gulp-dest-clean like this:

gulp.task('deleteFiles', function() {
    return gulp.src(['!..\..\..\HM_Serv1\/_system/**'])
        .pipe(destclean('!..\..\..\HM_Serv2\/_system', [ ], { verbose:true, force:true }));
});

Outputs in console:

gulp-dest-clean: patterns for `del`:
!..\..\..\HM_Serv2\_system\**
!..\..\..\HM_Serv2\_system
!..\..\..\HM_Serv2\_system\css
!..\..\..\HM_Serv2\_system\a-file.js
!..\..\..\HM_Serv2\_system\other-file.js
!..\..\..\HM_Serv2\_system\css\file.css
... etc ...
!..\..\..\HM_Serv2\_system\media\logo_blackandwhite_line_[sombre_331x46]_biseau.png
... etc ...
!..\..\..\HM_Serv2\_system
!..\..\..\HM_Serv2\_system\css
!..\..\..\HM_Serv2\_system\media
gulp-dest-clean: deleted:
D:\DATA\DEV\HM_Serv2\_system\media\logo_blackandwhite_line_[sombre_331x46]_biseau.png

The png file is deleted from disk with (apparently) no reason. It exists in source and destination, it is correctly listed in the patterns, but at the end it is removed from destination...

It may be due to its very long name.

Any idea ?

@DiamondeX
Copy link
Owner

I can't answer right now - lack of time.
I'll appriciate any help or suggestions on the topic.

@vousk
Copy link
Author

vousk commented Feb 19, 2016

Could not really help you unfortunatly, it's my first deep usage of node.js and gulp systems...
But since I've moved my src folder, this problem doesn't occur anymore. So it could really be due to a too long path+filename string.

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