vfs – virtual filesystem control
This module provides virtual filesystem control functions.
Functions
- vfs.mount(fsobj, mount_point)
Mount a filesystem object to the specified mount point.
- Parameters:
fsobj: the filesystem objectmount_point: the mount point path
- vfs.umount(mount_point)
Unmount the filesystem at the specified mount point.
- Parameters:
mount_point: the mount point path
- vfs.mkfs(fsobj)
Create a filesystem on the filesystem object.
- Parameters:
fsobj: the filesystem object
- vfs.chdir(path)
Change the current working directory.
- Parameters:
path: the target path
- vfs.getcwd()
Get the current working directory.
- Return value:
The current working directory path (a string)