Path¶
-
class
cgp_generic_utils.files.Path(path)¶ Bases:
objectpath object that manipulates any kind of entity on the file system
-
baseName(withExtension=True)¶ the baseName of the path
Parameters: withExtension (bool) – True: baseName with extension -False: baseName without extensionReturns: the baseName of the path Return type: str
-
directory()¶ the parent directory of the path
Returns: the directory of the path Return type: cgp_generic_utils.files.Directory
-
isDirectory()¶ check if the path is a directory
Returns: True: the path is a directory -Falsethe path is not a directoryReturn type: bool
-