%ZHSLIB.PackageManager.Developer.File
class %ZHSLIB.PackageManager.Developer.File
Wraps a set of more robust file operationsMethod Inventory (Including Private)
- CopyDir()
- CopyFile()
- CreateDirectoryChain()
- MakeDirectoryWriteable()
- RemoveDirectoryTree()
- SetReadOnly()
- SetWriteable()
Methods (Including Private)
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.
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.
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 ]