0.0.4 • Published 6 years ago

chmodr-promise v0.0.4

Weekly downloads
-
License
LGPL-2.1
Repository
github
Last release
6 years ago

chmodr-promise

a simple lib calling chmod recursively on all subdirectories & files

Author

Xiao Zhang

Usage

typescript:

import chmodr from 'chmodr-promise'
chmodr('/path/to/chmod')
.then(() => {
    console.log('success')
    })
.catch(e => {
    if(e.code === 'ENOENT') console.log('/path/to/chmod does not exist!')
    else console.log('unkown error')
    })

javascript:

const chmodr = require('chmodr-promise')
chmodr('/path/to/chmod')
.then(() => {
    console.log('success')
    })
.catch(e => {
    if(e.code === 'ENOENT') console.log('/path/to/chmod does not exist!')
    else console.log('unkown error')
    })
0.0.3

6 years ago

0.0.4

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago

0.0.0

6 years ago