Skip to content

Utility to clear read-only flag from actual files in both Windows and Linux environments

License

Notifications You must be signed in to change notification settings

karan-kang/gulp-clear-readonly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Utility to clear read-only flag from actual files in both Windows and Linux environments

Build Status

Installation

Install package with NPM and add it to your development dependencies:

npm install --save-dev gulp-clear-readonly

Usage

var clearReadOnly = require('gulp-clear-readonly');

// Clearing readonly flag from all files are sub folders recursively
gulp.task('clearReadOnlyFolder', function(done){
  return clearReadOnly("./wwwroot", done);
});

// Clearing readonly flag from a file
gulp.task('clearReadOnlyFile', function(done){
  return clearReadOnly("./wwwroot/testFile", done, {
    isFile: true
  });
});

// Enable debug logging, Default: false
gulp.task('clearReadOnlyWithDebug', function(done){
  return clearReadOnly("./wwwroot/testFile", done, {
    debug: true
  });
});

Supports Pass-through callback result

If the specified callback returns a result, the same result will be pass-throughed clearReadOnly function call.

About

Utility to clear read-only flag from actual files in both Windows and Linux environments

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published