0.0.4 • Published 4 years ago

chmodr-promise v0.0.4

Weekly downloads
-
License
LGPL-2.1
Repository
github
Last release
4 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

4 years ago

0.0.4

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago

0.0.0

4 years ago