View Full Version : NewDir + append username
devereuxx
03-05-2006, 12:45 PM
hello.
I wonder if its possible 2 make a script or something that can append the username to the dirname when u make a new dir.
fe. user1 logins and makes a new dir called "test123" in my ul dir, i would like the name 2become "test123(user1)".
//devereux
and the point in that is what exactly? to break anyones que? theres a simple solution to find out who created a directory, view raw dir
devereuxx
03-05-2006, 02:02 PM
and the point in that is what exactly? to break anyones que? theres a simple solution to find out who created a directory, view raw dir
break anyones que??
I just have special reason for this on my ftp, not many dirs will be created and this would just be a thing id like 2 have, ppl who upload things wont be affected by this dir naming.. why question my request at all btw? its just something id like 2 have and asked for help with :<
//devereux
EwarWoo
03-05-2006, 05:59 PM
break anyones que??
ppl who upload things wont be affected by this dir naming..
MKD test (in background, invisible to uploader or his client, directory is renamed)
Transfer Test/file.rar
Directory doesn't exist. Transfer failed.
Thats what he means by break queue and yes it will affect uploaders.
You need to chill a bit bud, he was trying to help you by pointing out the major flaw in your idea, its not his fault your knowledge isn't wide enough to understand what hes saying.
devereuxx
03-05-2006, 07:11 PM
MKD test (in background, invisible to uploader or his client, directory is renamed)
Transfer Test/file.rar
Directory doesn't exist. Transfer failed.
Thats what he means by break queue and yes it will affect uploaders.
You need to chill a bit bud, he was trying to help you by pointing out the major flaw in your idea, its not his fault your knowledge isn't wide enough to understand what hes saying.
so u are saying that there is no way 2 separate the single "makedir" command from the makedir that is being used while uploading a dir with files in?
and yes true, i dont know much about coding or how everything works in the background.. but if its an impossible thing 2 do without ****ing up uploads aswell, wouldnt it have been easier 2 just have told me that instead of questioning my request?
and also, sry if i come on a bit strong and agitated, but it just felt 2 me like tuff were questioning my request just cuz he couldnt see the point of it, if he just would have explained like u did it would have been way easier for me 2 get it aswell :p
EwarWoo
03-05-2006, 09:26 PM
if he just would have explained like u did it would have been way easier for me 2 get it aswell :p
Thats just tuff. He doesn't mean anything by it and hes not being nasty, hes just a technical fella so sometimes his answers come over in a technical way.
hehe..
There is a simpler solution..
In your client, next to name. right click and choose owner.
then u can see who made what dir always..
flashfxp, ultrafxp, ftprush and others support this..
hello.
I wonder if its possible 2 make a script or something that can append the username to the dirname when u make a new dir.
fe. user1 logins and makes a new dir called "test123" in my ul dir, i would like the name 2become "test123(user1)".
//devereux
ioFTPD.ini
[FTP_Post-Command_Events]
mkd = TCL jScripts.itcl NEWDIR
put this code to file jScripts.itcl and add it to your ioFTPD/system dir
regsub -all -- {\\} $path {/} path
if { [file exists "$path/[lindex $args 2]"] } {
catch { [file rename -force -- "$path/[lindex $args 2]" "$path/[lindex $args 2]($user)"] }
}
rehash/restart ioftpd
vBulletin® v3.8.11 Alpha 3, Copyright ©2000-2025, vBulletin Solutions, Inc.