Inheritance diagram for wx.FileSystemHandler:
Classes derived from wx.FileSystemHandler are used to access virtual file systems. Its public interface consists of two methods: CanOpen and OpenFile. It provides additional protected methods to simplify the process of opening the file.
See also
Returns True if the handler is able to open this file. This function doesn’t check whether the file exists or not, it only checks if it knows the protocol. Example:
def CanOpen(location):
return self.GetProtocol(location) == "http"
Must be overridden in derived handlers.
Parameters:
Returns:
bool
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).
This method is only called if CanOpen returns True.
Parameters:
Returns:
string
Returns next filename that matches parameters passed to FindFirst.
This method is only called if CanOpen returns True and FindFirst returned a non-empty string.
Returns:
string
Returns the anchor if present in the location.
Parameters:
Returns:
string
Note
the anchor is NOT part of the left location.
See also
Returns the left location string extracted from location.
Parameters:
Returns:
string
Returns the MIME type based on extension of location. (While wx.FSFile.GetMimeType returns real MIME type - either extension-based or queried from HTTP.)
Parameters:
Returns:
string
Returns the protocol string extracted from location.
Parameters:
Returns:
string
Returns the right location string extracted from location.
Parameters:
Returns:
string
Opens the file and returns wx.FSFile pointer or None if failed.
Must be overridden in derived handlers.
Parameters:
Returns: