PDA

View Full Version : rmdir variable


mr_F_2
01-31-2004, 11:32 PM
variable for directory being removed in [FTP_Pre-Command_Events]
?

i want to execute a script when pre rmd is executed (i want to clean some hidden files created by a zipscript in a given folder)... except i don't have a variable to check which folder is being deleted therefore can't clean those hidden files up, and ioFTPD won't let me dele the folder b/c of those files still existing in the folder i want to dele

any help? maybe there is a variable that has this already, or maybe one could be assigned it? (%[extra] isn't used in this case to the best of my knowledge)

Mouton
01-31-2004, 11:34 PM
pre script is called with that in argument.
list the arguments u receive, u'll see it.

mr_F_2
02-01-2004, 12:09 AM
this is what i get when removing "F:\[incoming]\gaj\teststst":

[23:08:53] 257 "/upload/gaj/" is current directory.
[23:08:53] RMD /upload/gaj/teststst
[23:08:54] Param 1 = f:\[incoming]\gaj
[23:08:54] Param 2 = RMD
[23:08:54] Param 3 = /upload/gaj/teststst

my ioFTPD.ini line is:
rmd = %EXEC ..\scripts\checkscript.exe "%[$path]"

i would like the physical path being deleted, not the virtual.

Mouton
02-01-2004, 09:52 AM
no such thing...
use a mix of $path and $pwd
or $systempath and $virtualpath in fact... those are the new vars.