Method MasterObject()->add_filesystem_handler()


Method add_filesystem_handler

mixed add_filesystem_handler(string mountpoint, object filesystem)

Description

mount a filesystem handler to be used by the resolver. on its own does noting, but may be used with add_module_path and friends to enable modules to be loaded from Filesystem objects.

Parameter mountpoint

the location in the filesystem to mount the handler

Parameter filesystem

a filesystem object that will handle requests for the given mountpoint.

Example

master()->add_filesystem_handler("/foo/bar.zip", Filesystem.Zip("/foo/bar.zip")); master()->add_module_path("/foo/bar.zip/lib");

See also

find_handler_for_path()