General file functions

These functions can be used to perform common file and directory services, as well as, manipulate information about open file descriptors.

ChangeProtection()
ChangeProtection() is used to change the protection mode of a file.
CloseAllEASIFiles()
CloseAllEASIFiles() is used to close all files that were opened using DKOpen(), TEXTOpen(), and DBOpen().
CopyFile()
CopyFile() is used to create a duplicate of a file.
FDDereference()
FDDereference() is used to decrement the reference or usage count for this file.
FDFilename()
FDFilename() is used to obtain the file associated with a file specificiation.
FDFlags()
FDFlags() is used to retrieve the flags associated with a file handle.
FDReference()
FDReference() is used to increment the reference or usage count for this file.
FDReferenceCount()
FDReferenceCount() is used to retrive the reference or usage count for a file.
FDType()
FDType() is used to retrive type of the indicate open file.
FindFile()
FindFile() is used to find files in local, or system directories in a OS, and application environment independent manner.
GetCWD()
GetCWD() is used to retrieve the name of the current working directory.
GetDirectory()
GetDirectory() is used to retrieve a listing of all the files in a directory.
GetFileBasename()
GetFileBasename() is used to extract the base portion from a filename.
GetFileExtension()
GetFileExtension() is used to extract the extension portion from a filename.
GetFreeDiskSpace()
GetFreeDiskSpace() is used to retrieve the number of bytes of free disk space on the file system containing the passed file or directory.
GetPathComponents()
GetPathComponents() is used to extract a list of directory names in the path for the given file path.
GetStat()
GetStat() is used to retrieve status information about the indicated file.
LockFile()
LockFile() is used to set an exclusive (access) lock on the given file.
MkDirectory()
MkDirectory() is used to create a new subdirectory with the provided name.
NormalizePath()
NormalizePath() is used to transform a file path into a reasonable format for the local filesystem.
RelTmpNam()
RelTmpNam() is used to return a string containing a "safe" temporary filename in a specified location.
SetCWD()
SetCWD() is used to change the current working directory.
TmpNam()
TmpNam() is used to return a string containing a `safe' temporary filename as per the C function tmpnam().
UnlockFile()
UnlockFile() is used to release a previously set file lock on the specified file.

© PCI Geomatics Enterprises, Inc.®, 2026. All rights reserved.