mewbot / FileUtil
▸ Static
create(path
): Promise
<void
>
Name | Type |
---|---|
path |
string |
Promise
<void
>
▸ Static
read(path
): Promise
<undefined
| Buffer
>
Name | Type |
---|---|
path |
string |
Promise
<undefined
| Buffer
>
▸ Static
readJson(path
, log?
): Promise
<any
>
Name | Type | Default value |
---|---|---|
path |
string |
undefined |
log |
boolean |
true |
Promise
<any
>
▸ Static
write(path
, data
): Promise
<void
>
Name | Type |
---|---|
path |
string |
data |
string |
Promise
<void
>
▸ Static
delete(path
): Promise
<void
>
Name | Type |
---|---|
path |
string |
Promise
<void
>
▸ Static
exists(path
): Promise
<boolean
>
Name | Type |
---|---|
path |
string |
Promise
<boolean
>
• new FileUtil()