Go Back   FlashFXP Forums > > > >

ioFTPD General New releases, comments, questions regarding the latest version of ioFTPD.

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-17-2003, 08:07 PM   #1
BL4DE
Junior Member
 
Join Date: Jan 2003
Posts: 4
Default OnFTPNewDir

OnFTPNewDir is triggered when the dir is already there
BL4DE is offline   Reply With Quote
Old 01-17-2003, 08:10 PM   #2
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

This is more of feature.. OnFTPNewDir is/was designed to prevent directory creation (anyways, I'll rename that event soon & add one that is triggered after directory is creation with this name)
darkone is offline   Reply With Quote
Old 09-15-2003, 08:18 AM   #3
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Arrow super

when it could be done?
THX
Miky is offline   Reply With Quote
Old 10-14-2003, 03:33 AM   #4
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Exclamation PLEASE

D1 can you please fix this?
I wrote the script on pre mkd to avoid this, but it doesn't work properly and I don't know why

Clients create dirs in many ways:
(pwd /some/where/)

mkd new.dir
mkd new.dir/
mkd /some/where/new.dir
mkd /some/where/new.dir/

these I can handle, but sometimes it's not enough

THX
Miky is offline   Reply With Quote
Old 10-14-2003, 04:14 AM   #5
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Miky if you want to block new dirs then use the [pre] mkd=... for that. Be aware of the return code!
FTPServerTools is offline   Reply With Quote
Old 10-14-2003, 04:17 AM   #6
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Default

YES I did it,
but I don't know why my script doesn't deny ALL existing dirs.
Miky is offline   Reply With Quote
Old 10-14-2003, 04:23 AM   #7
FTPServerTools
Senior Member
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: Sep 2002
Posts: 543
Default

Probably because your script is wrong?? The event works fine.
FTPServerTools is offline   Reply With Quote
Old 10-14-2003, 04:36 AM   #8
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Default


yah I know that

so other way is to fix it in ioftpd

or I have to set up long time debuging and figure out all ways how clients create new dirs, but for it I haven't time

....

but D1 knows about this little bug maybe for 9 months and fix is nowhere (nothing against D1, everybody has own priorities), so I probably have to fix it my way
Miky is offline   Reply With Quote
Old 10-17-2003, 07:11 AM   #9
PaJa
Member
 
Join Date: Jul 2003
Posts: 53
Default

heh just add check if folder already exists or not i dont see any problems here
PaJa is offline   Reply With Quote
Old 10-20-2003, 12:49 AM   #10
Miky
Member
 
Join Date: Feb 2003
Posts: 31
Thumbs up

I already solve this problem
it was a little bit complicated

I insert to my "script" by cookies physical path
next argument is command (MKD <new dir>).
Than I open dir from cookies and check for "new" dir,

BUT

sometimes it works and sometimes doesn't
The problem was, that when someone upload more dirs at once
(more dirs in queue) he always was not in dir where he want makes it.

So now I have to ask ioftpd where is the user's vfsfile
and find out physical dir correspond to virtual dir

Miky
Miky is offline   Reply With Quote
Reply

Tags
dir, onftpnewdir, triggered

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 01:29 PM.

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