create_local_file_system method

create_local_file_system

Initialize a new FileSystem that only access local directory. All file read/write on this FileSystem instance will be mapped to specified directory.

Returns

A new instance of file system to provide local file access

def create_local_file_system(self, directory):
    ...
ParameterTypeDescription
directorystrThe directory in your physical file system as the virtual root directory.

Exceptions

ExceptionDescription
FileNotFoundExceptionThrown when directory cannot be found.

See Also