FileSystemManager
解释:文件管理器。
Web 态说明:受浏览器限制,Web 态不支持文件系统相关功能,调用该对象的方法会执行失败回调函数或抛出一个标准的Error
对象。
示例
跳转编辑工具
扫码体验
代码示例
请使用百度APP扫码
代码示例
- SWAN
- JS
<view class="wrap">
<button type="primary" bindtap="access">access</button>
<button type="primary" bindtap="accessSync">accessSync</button>
<button type="primary" bindtap="appendFile">appendFile</button>
<button type="primary" bindtap="appendFileSync">appendFileSync</button>
<button type="primary" bindtap="copyFile">copyFile</button>
<button type="primary" bindtap="copyFileSync">copyFileSync</button>
<button type="primary" bindtap="getFileInfo">getFileInfo</button>
<button type="primary" bindtap="getSavedFileList">getSavedFileList</button>
<button type="primary" bindtap="mkdir">mkdir</button>
<button type="primary" bindtap="mkdirSync">mkdirSync</button>
<button type="primary" bindtap="readdir">readdir</button>
<button type="primary" bindtap="readdirSync">readdirSync</button>
<button type="primary" bindtap="readFile">readFile</button>
<button type="primary" bindtap="readFileSync">readFileSync</button>
<button type="primary" bindtap="removeSavedFile">removeSavedFile</button>
<button type="primary" bindtap="rename">rename</button>
<button type="primary" bindtap="renameSync">renameSync</button>
<button type="primary" bindtap="rmdir">rmdir</button>
<button type="primary" bindtap="rmdirSync">rmdirSync</button>
<button type="primary" bindtap="saveFile">saveFile</button>
<button type="primary" bindtap="saveFileSync">saveFileSync</button>
<button type="primary" bindtap="stat">stat</button>
<button type="primary" bindtap="statSync">statSync</button>
<button type="primary" bindtap="unlink">unlink</button>
<button type="primary" bindtap="unlinkSync">unlinkSync</button>
<button type="primary" bindtap="unzip">unzip</button>
<button type="primary" bindtap="writeFile">writeFile</button>
<button type="primary" bindtap="writeFileSync">writeFileSync</button>
</view>