Home > Class Reference > %SYS namespace > %ZHSLIB.PackageManager.Developer.File


class %ZHSLIB.PackageManager.Developer.File

Wraps a set of more robust file operations

Method Inventory


classmethod CopyDir(pSource As %String, pDest As %String, pDeleteFirst As %Boolean = 1) as %Status [ Language = objectscript ]
classmethod CopyFile(pSource As %String, pDest As %String, pDeleteBeforeCopy As %Boolean = 0) as %Status [ Language = objectscript ]
Copy a file pSource to file pDest.
Parameter pDeleteBeforeCopy may be used to specify that if the target file already exists then it should be deleted before being overwritten with the source file. The default is 0 or false.
classmethod CreateDirectoryChain(pName As %String) as %Status [ Language = objectscript ]
Create this directory and all the parent directories if they do not exist. This differs from CreateDirectory() as that method only creates one new directory where as this will create the entire chain of directories. Returns true if it succeeds and false otherwise. Pass return by reference to obtain the low level return value in case of errors
classmethod MakeDirectoryWriteable(pDirectory As %String, Output pCmd, Output pOutputLog, Output pErrLog) as %Status [ Language = objectscript ]
classmethod RemoveDirectoryTree(pRoot As %String) as %Status [ Language = objectscript ]
classmethod SetReadOnly(pFileOrDirectoryName As %String, pLeaveExisting As %Boolean = 0) as %Status [ Language = objectscript ]
classmethod SetWriteable(pFileName As %String, pWriteable As %Boolean = 1) as %Status [ Language = objectscript ]
FeedbackOpens in a new window