Namespace: fsys

fsys

Members

<static> checker

checker library
Source:

<static> store

store library
Source:

<static> TYPE

file type
Source:

Methods

<static> chmodfilesSync(list, mode)

change file modes or Access Control Lists bash: $ chmod {mode} {path} ...
Parameters:
Name Type Description
list Array target files
mode int change file mode
Source:

<static> cp(src, dst, callback)

ファイルをコピーする
Parameters:
Name Type Description
src String コピー元のファイルパス
dst String コピー先のファイルパス
callback function コールバック
Source:

<static> isDirectorySync(p) → {boolean}

Parameters:
Name Type Description
p String target directory path
Source:
Returns:
Type
boolean

<static> isFileSync(p) → {boolean}

Parameters:
Name Type Description
p String target file path
Source:
Returns:
Type
boolean

<static> mkdirp()

bash: $ mkdir -p (async)
Source:
See:

<static> mkdirpSync()

bash: $ mkdir -p (sync)
Source:
See:

<static> readFileFnJSONSync(filePath, encode) → {Object}

JS設定ファイルからJSONデータを読み込む
Parameters:
Name Type Description
filePath String load file path
encode String file encode
Source:
Returns:
load json data
Type
Object

<static> readFileMultiConfigureSync(path, encode)

拡張子が.jsはjavascript で、.jsonはJSON.parseでファイルをロードして返却します。
Parameters:
Name Type Description
path String read file path
encode String file read encode
Source:

<static> readJsonSync(path, minify, encode)

Read file Sync(json format)
Parameters:
Name Type Description
path String read file path
minify boolean use jsonminify
encode String file read encode
Source:

<static> resolveTilde(str) → {String}

'~'付きのファイルパスから絶対パスを返却する
Parameters:
Name Type Description
str String 相対パス
Source:
Returns:
file path
Type
String

<static> resolveTilde(str) → {String}

'~'付きのファイルパスの'~'をパスに置き換えて返却する
Parameters:
Name Type Description
str String 相対パス
Source:
Returns:
file path
Type
String

<static> typeSync(p) → {String}

Parameters:
Name Type Description
p String target path
Source:
Returns:
this.TYPES
Type
String

<static> typeSync(p, f)

bash: $ rm -rf
Parameters:
Name Type Description
p String delete path
f String path.resolve#from
Source:

<static> walk(basedir, filefn, dirfnFunction)

file system walk function
Parameters:
Name Type Description
basedir String base path
filefn function Function to be executed when the file is found
dirfnFunction function to be executed when the directory is found
Source: