Go Back   FlashFXP Forums > > > >

Suggestions Got a new idea or addition which would benefit IOFTPD? Post it here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-16-2004, 08:12 AM   #1
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default !vfs:flush

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.
FTPServerTools is offline   Reply With Quote
Old 04-16-2004, 08:40 AM   #2
bizniz
Banned
 
Join Date: Feb 2004
Posts: 19
Default

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.
bizniz is offline   Reply With Quote
Old 04-16-2004, 11:28 AM   #3
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

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).
Mouton is offline   Reply With Quote
Old 04-16-2004, 06:43 PM   #4
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

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.
FTPServerTools is offline   Reply With Quote
Old 04-17-2004, 07:30 AM   #5
Unique
Senior Member
 
Join Date: Jan 2003
Posts: 231
Default

Mmzz using site commands its easy, aint that !vfs almost same :S

site chattr +l symlink /mp3/0416/

site chattr -l symlink
Unique is offline   Reply With Quote
Old 04-19-2004, 08:29 AM   #6
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

You can't execute site commands from a script. U need to use the available !commands.
Mouton is offline   Reply With Quote
Reply

Tags
.ioftpd, code, file, remove, vfsflush

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 05:56 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)