(KSS 8.3+)
So, I've done some work with file operations on local files (in the UserFiles directory), but now I'm branching out into doing remote file ops on SMB shares. The manual is pretty straightforward about this, but there are two things I'm interested in that don't appear in the documentation.
First off, while there's a command to get a file size, I'm interested in getting a file's age. Ideally, I'd like to be able to delete any file older than a certain limit, for cleanup and avoiding the possibility of overrunning my available storage space (small log files build up over years of production cycles). None of the documented commands appear to provide this information -- I'm wondering if anyone has come across some undocumented feature that might do this?
Second, I'm looking at the mount/unmount commands, and noticing there doesn't seem to be any means for getting the status of a mount. For example, if a remote SMB share is already mounted, I'd rather avoid trying to mount it again. Ditto for unmounting. Yes, there's the MSG_NO feedback, but it's pretty vague -- "mount not available" can cover several different underlying errors.
And it would be nice to be able to check a local mount point, or a remote SMB share, and see 1: If it's mounted, and 2: what, if anything, it's connected to.
And while I'm on the subject, anyone have a handle on what the time delays are like for mount/unmount operations? The smart play would be to mount, read/write, then unmount immediately, in order to avoid the "is it mounted?" issue, but I'm wondering what the time penalty would be.