‘filesysobjects.NetFiles’ - Module

The ‘NetFiles’ module provides basic extensions for ‘os.path.normpath’.

REMARK: This module is currently an experimental release for discussion
and may change. Do not use it in production code!

The following subset of URLs / RFC...

Functions

netNormpathX

filesysobjects.NetFiles.netNormpathX(path, **kargs)[source]

Extends ‘os.path.normpathX’ for network filesystems applications.

The basic extension is the split of the full application level pathname into it’s application parts and the actual pathname of the node. The pathname of the node is still passed onto the call ‘os.path.normpath’, with a few exceptions only, whereas the network application part, and/or eventual protocol key of the URI are handled separately.

Thus the behavior for the filesystem address - the local path almost remains, while is extended by a network portion.

But due to the eventual different remote filesystem attributes the local evaluation remains unsafe, while else requires remote access for assurance of the parameters.

#FIXME: Going to be worked out!

Args:
plist: List of paths to be cleared.

See common options for details.

default := sys.path

**kargs:
fstype: The type of the final target filesystem.

This is required because a remote filesystem could be ‘s.th.’ completely different, e.g. just a virtual representation of anything.

default := <local-filesystem-type>

ias: Treats for local file names any

number of subsequent ‘os.pathsep’ as one. This breaks formally the definitions on IEEE-1003.1, and SMB/CIFS conformant filesystems.

See common options for more details.

raw: Suppress of the call of ‘os.path.normpath’ and
the generic term ‘share’.
Returns:
When successful returns the split file pathname, else returns either ‘None’, or raises an exception.
Raises:
passed through exceptions:

See also