Nuno Canas wrote: > How can I check if logfile exists ? The %File class has classmethods that do what you need. I wrapped the ones I use into universal.inc to give them readily readable names. Here are some common ones: ##class(%File).Exists(%filepath) ##class(%File).DirectoryExists(%path) ##class(%File).SubDirectoryName(%path,%file) ;catenate subdir or file name to root directory path. ##class(%File).Delete(%filepath) ##class(%File).GetFileSize(%filepath) ##class(%File).GetFileDateCreated(%filepath) ##class(%File).GetFileDateModified(%filepath)
Of course you can look at class %File to see all methods. You could use a macro to wrap the $zu(140,4,filename) etc to make your source code more readable, like $$$HFSFileExists(filename).
