从Python脚本中卸载fuse fs
我已经用 python 开发了fuse fs,现在想为其编写测试。在测试之前,我将文件系统安装到某个目录:
fs = MyFuseFS()
fs.parse(errex=1, ['some_dir'])
fs.main()
测试之后,我想卸载我的文件系统,想做这样的事情:
fs.unmount()
它是类似于“卸载”方法吗?也许还有其他方法来卸载 fs?
I have developed fuse fs with python and now want to write tests for it. Before testing I mount fs to some dir:
fs = MyFuseFS()
fs.parse(errex=1, ['some_dir'])
fs.main()
After testing I want unmount my fs, want to do something like this:
fs.unmount()
Is it something like "unmount" method? Maybe there is another ways to unmount fs?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://packages.python.org/fs/expose/fuse.html
您可以从此链接查看您需要的内容。
你猜对了函数名称:)
http://packages.python.org/fs/expose/fuse.html
you can see what you need from this link.
you guessed the function name right :)