-
Notifications
You must be signed in to change notification settings - Fork 207
File
xu_whale edited this page Dec 4, 2019
·
10 revisions
File工具类
文件是否存在
获取客户端根目录
是否是文件夹
是否是文件
从文件中同步读取string
同步写文件
[syncWriteMap(string a, Map b)](https://github.com/momotech/MLN/wiki/File-number-syncWriteMap-string-Map)
将map内容同步写入文件
[syncWriteArray(string a, Array b)](https://github.com/momotech/MLN/wiki/File-number-syncWriteArray-string-Array)
将array内容同步写入文件
同步解压文件
异步解压文件
[asyncWriteArray(string a, Array b, function c)](https://github.com/momotech/MLN/wiki/File-self-asyncWriteArray-string-Array-function)
异步写Array到文件中
[asyncWriteMap(string a, Map b, function c)](https://github.com/momotech/MLN/wiki/File-self-asyncWriteMap-string-Map-function)
异步写Map到文件中
异步写string到文件中
[asyncReadFile(<#type#> a, <#type#> b)](https://github.com/momotech/MLN/wiki/File-self-asyncReadFile-<#type#>-<#type#>)
异步读取文件
异步读取数组文件内容
getStorageDir() ❌
获取MLN存储主目录 @version 1.2.11
创建文件 @version 1.2.11
创建文件夹 @version 1.2.11
删除文件/文件夹 @version 1.2.11
移动文件/文件夹 @version 1.2.11
拷贝文件/文件夹 @version 1.2.11
[asyncGetFileList(string a, boolean b, function c)](https://github.com/momotech/MLN/wiki/File-self-asyncGetFileList-string-boolean-function)
获取指定文件夹下所有文件/文件夹 @version 1.2.11
获取文件属性 @version 1.2.11
同步获取文件MD5值 @version 1.2.11
异步获取文件MD5值 @version 1.2.11