Unit 'msefileutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

Reference for unit 'msefileutils': Procedures and functions

checkfileext

  

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

checkfilename

  

Returns True if filename matches mask, which can contain the wildcards * and ?

clearfileinfo

combinerootpath

compfileinfos

compfiletime

  

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

copyfile

  

Copies oldfile to newfile and returns True on success; returns False if newfile already exists and canoverwrite is False

createdir

createdirpath

deletedir

  

Deletes path and its contents recursively, and returns False if it does not exist

deletefile

  

Deletes filename and returns False if it does not exist

dirhasentries

extractrootpath

filedir

fileext

filename

filenamebase

filepath

  

Returns the path built from directory and filename (directory is ignored if filename starts with a root segment)

filesystemiscaseinsensitive

finddir

findfile

  

Searches filename in dirnames and returns True if found; path is left unchanged if the file is not found

findfileordir

getcurrentdir

getcurrentdirmse

getfileinfo

  

Fills info with information about the file or directory at path

getfilemodtime

  

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

getlastpathsection

hasfileext

hasmaskchars

initdirfileinfo

intermediatefilename

isrelativepath

isrootdir

isrootpath

issamefilename

issamefilepath

mergerootpath

msegettempdir

msegettempfilename

quotefilename

relativepath

  

Returns path relative to root (or to the current directory if root is empty)

relocatepath

  

Searches the file apath in newdir relative to olddir, or in its original location; updates apath and returns True if found

removefileext

removelastdir

removelastpathsection

renamefile

  

Renames oldname to newname and returns False if newname already exists and canoverwrite is False

replacefileext

searchfile

  

Returns the root path if the file exists, or an empty string otherwise

searchfilenames

  

Returns the file names (not the full paths, unlike searchfiles) matching afilename found in adirname

searchfiles

  

Returns the paths of the files matching afilename found in adirname

setcurrentdir

setcurrentdirmse

splitfilepath

splitrootpath

syscommandline

tomsefilepath

tomsefilepath1

tosysfilepath

  

Converts path from MSEgui's unified filepath style to the current OS's native style (tomsefilepath/tomsefilepath1 do the reverse conversion)

tosysfilepath1

trycopyfile

  

Like copyfile, but returns False instead of raising an exception on error (or if newfile already exists and canoverwrite is False)

trydeletedir

  

Like deletedir, but returns False instead of raising an exception if path does not exist or could not be deleted

trydeletefile

  

Like deletefile, but returns False instead of raising an exception if filename does not exist or could not be deleted

trysetcurrentdirmse

uniquefilename

  

Returns a file name derived from path that does not already exist, adding a number if necessary

unquotefilename


Documentation generated on: 2026-10-03