PDA

View Full Version : !vfs:flush


FTPServerTools
04-16-2004, 08:12 AM
I would love to see a !vfs:flush to free a symlink the easy way.
Say I do a !vfs:chattr 1 "d:\test\a" "/test/s/" then my symlink appears.
But if I want to remove it i either need to edit the .ioFTPD file using the io code, or I need to change the .ioFTPD myself and force io to update it's vfs cache.
Pretty unhandy if you ask me. The easiest way to do this would be:
a dos console reply of !vfs:flush "d:\test\a"
this could easily auto remove/change the .ioFTPD file and remove the link. As it is now a lot of code needs to be made for such a simple thing.

bizniz
04-16-2004, 08:40 AM
well if youre deleting the folder there's no need, link will be lost safely, or just !vfs:chattr it again to change the link to elsewhere.

Mouton
04-16-2004, 11:28 AM
indeed, removing a symlink is just deleting the folder (2-3 lines of C i'd guess). io catch deletions and will re-built it's dircache next time the parent dir is listed. Or u can force it manually by sending a flush message to io message window (which is always a good idea).

FTPServerTools
04-16-2004, 06:43 PM
Well I guess I need to use an alternative way since I know exactly where I put my symlinks I should be able to resolve it. Thanks.
But the store of deleting the folder that will remove the link only works if I remove the dir that holds the .ioFTPD file of course. Too bad d1 didnt implement it as with servu using .lnk files. Of couse it makes sense he would have no place to implement the attribs like 777 and so.

Unique
04-17-2004, 07:30 AM
Mmzz using site commands its easy, aint that !vfs almost same :S

site chattr +l symlink /mp3/0416/

site chattr -l symlink :confused:

Mouton
04-19-2004, 08:29 AM
You can't execute site commands from a script. U need to use the available !commands.