PDA

View Full Version : vfs stuff


FTPServerTools
05-25-2004, 09:58 AM
Ok a simple question apparently since !vfs:del doesnt exist anymore and deleting a dir via explorer doesnt update the cache from ioftpd I would assume that calling io with shmem all I need to do is use #define DC_DIRECTORY_MARKDIRTY 22

Is that correct? since there is no real docs on that.
Or should I use the harder way and use
#define DC_FILEINFO_READ 11
#define DC_FILEINFO_WRITE 12

and parse the vfs using the DC_VFS and vfs.h contents?

Or can I just as well update the .ioFTPD file myself by locking it, updating it myself and unloacking it?

Which is the best solution??

Harm
05-25-2004, 10:01 AM
Using DC_DIRECTORY_MARKDIRTY will force ioFTPD to flush the cache for the specified directory and the content will be recached next time the directory is listed.