hparra/gulp-rename

Directory and sub-directory files rename

brb-elia opened this issue · 1 comments

I have this directory structure:

#NAME#
    #NAME#-info.plist
    #NAME#-Prefix.pch
    ...
#NAME#.xcodeproj

and I use this code for renaming all the #NAME# placeholder with the correct value:

var name = "TEST";
gulp.src("platforms/ios/**/*\#NAME\#.*")         
    .pipe(rename(function(path) {
        path.dirname = path.dirname.replace("#NAME#", name);
        path.basename = path.basename.replace("#NAME#", name);
        return path;
    }))    
    .pipe(gulp.dest("platforms/ios/"))        

the gulp task only rename (copy but not delete) the #NAME#.xcodeproj file but not the directory and its files. How can I solve this problem?

New maintainer here - cleaning up old tickets so I'm going to close this - if you still have this issue let me know and I'll reopen it.