Class: Wx::FileSystem
Overview
This class is untracked and should not be derived from nor instances extended!
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 (see FileSystemHandler) to provide access to user-defined virtual file systems.
Category: Virtual File System
Class Method Summary collapse
-
.file_name_to_url(filename) ⇒ String
Converts a FileName into an URL.
-
.has_handler_for_path(location) ⇒ Boolean
This static function returns true if there is a registered handler which can open the given location.
-
.remove_handler(handler) ⇒ Wx::FileSystemHandler
Remove a filesystem handler from the list of handlers.
-
.url_to_file_name(url) ⇒ String
Converts URL into a well-formed filename.
Instance Method Summary collapse
-
#initialize ⇒ Wx::FileSystem
constructor
Constructor.
Methods inherited from Object
#clone, #dup, #is_same_as, #un_share
Constructor Details
#initialize ⇒ Wx::FileSystem
Constructor.
The initial current path of this object will be empty (i.e. get_path == EmptyString) which means that e.g. open_file or find_first functions will use current working directory as current path (see also GetCwd).
29 |
# File 'lib/wx/doc/gen/file_system.rb', line 29 def initialize; end |
Class Method Details
.file_name_to_url(filename) ⇒ String
Converts a Wx::FileName into an URL.
43 |
# File 'lib/wx/doc/gen/file_system.rb', line 43 def self.file_name_to_url(filename) end |
.has_handler_for_path(location) ⇒ Boolean
This static function returns true if there is a registered handler which can open the given location.
48 |
# File 'lib/wx/doc/gen/file_system.rb', line 48 def self.has_handler_for_path(location) end |
.remove_handler(handler) ⇒ Wx::FileSystemHandler
Remove a filesystem handler from the list of handlers.
34 |
# File 'lib/wx/doc/gen/file_system.rb', line 34 def self.remove_handler(handler) end |
.url_to_file_name(url) ⇒ String
Converts URL into a well-formed filename.
The URL must use the file protocol.
55 |
# File 'lib/wx/doc/gen/file_system.rb', line 55 def self.url_to_file_name(url) end |