Inheritance diagram for wx.FileSystem:
This class provides an interface for opening files on different file systems. It can handle absolute and/or local filenames. It uses a system of handlers to provide access to user-defined virtual file systems.
See also
This static function adds new handler into the list of handlers which provide access to virtual FS. Note that if two handlers for the same protocol are added, the last one added takes precedence.
Parameters:
Sets the current location. location parameter passed to OpenFile is relative to this path.
Parameters:
Warning
Unless is_dir is True the location parameter is not the directory name but the name of the file in this directory. All these commands change the path to “dir/subdir/”:
ChangePathTo("dir/subdir/xh.htm")
ChangePathTo("dir/subdir", True)
ChangePathTo("dir/subdir/", True)
Converts filename into URL.
Parameters:
Returns:
string
See also
Returns name of the first filename (within filesystem’s current path) that matches wildcard. flags may be one of wx.FILE (only files), wx.DIR (only directories) or 0 (both).
Parameters:
Returns:
string
Returns actual path (set by ChangePathTo).
Returns:
string
Opens the file and returns a pointer to a wx.FSFile object or None if failed. It first tries to open the file in relative scope (based on value passed to ChangePathTo() method) and then as an absolute path.
A stream opened with just the default wx.FS_READ flag may or may not be seekable depending on the underlying source. Passing wx.FS_READ | wx.FS_SEEKABLE for flags will back a stream that is not natively seekable with memory or a file and return a stream that is always seekable.
Parameters:
Returns:
Note
Note that the user is responsible for deleting the returned wx.FSFile.
Parameters:
Returns:
wx.CPPFileSystemHandler
Converts URL into a well-formed filename. The URL must use the file protocol.
Parameters:
Returns:
string