|
Returns True if path has one of the given extensions (without the leading dot; case sensitivity depends on the file system), as in the following example, which detects an MSEIDE project file |
|
|
Returns True if filename matches mask, which can contain the wildcards * and ? |
|
|
Compares two date/time values and returns -1 if a is earlier than b, 0 if they are equal, or 1 if a is later than b |
|
|
Copies oldfile to newfile and returns True on success; returns False if newfile already exists and canoverwrite is False |
|
|
Deletes path and its contents recursively, and returns False if it does not exist |
|
|
Deletes filename and returns False if it does not exist |
|
|
Returns the path built from directory and filename (directory is ignored if filename starts with a root segment) |
|
|
Searches filename in dirnames and returns True if found; path is left unchanged if the file is not found |
|
|
Fills info with information about the file or directory at path |
|
|
Returns the last modification date and time of the file at path, or an empty date if it does not exist, as in the following example |
|
|
Returns path relative to root (or to the current directory if root is empty) |
|
|
Searches the file apath in newdir relative to olddir, or in its original location; updates apath and returns True if found |
|
|
Renames oldname to newname and returns False if newname already exists and canoverwrite is False |
|
|
Returns the root path if the file exists, or an empty string otherwise |
|
|
Returns the file names (not the full paths, unlike searchfiles) matching afilename found in adirname |
|
|
Returns the paths of the files matching afilename found in adirname |
|
|
Converts path from MSEgui's unified filepath style to the current OS's native style (tomsefilepath/tomsefilepath1 do the reverse conversion) |
|
|
Like copyfile, but returns False instead of raising an exception on error (or if newfile already exists and canoverwrite is False) |
|
|
Like deletedir, but returns False instead of raising an exception if path does not exist or could not be deleted |
|
|
Like deletefile, but returns False instead of raising an exception if filename does not exist or could not be deleted |
|
|
Returns a file name derived from path that does not already exist, adding a number if necessary |
|