Go Back   FlashFXP Forums > > > >

! Requests Need a script or some sort of cool .bat file ? Ask here!

Reply
 
Thread Tools Rate Thread Display Modes
Old 03-05-2006, 12:45 PM   #1
devereuxx
Junior Member
 
Join Date: Mar 2006
Posts: 3
Default NewDir + append username

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
devereuxx is offline   Reply With Quote
Old 03-05-2006, 01:33 PM   #2
tuff
Senior Member
FlashFXP Registered User
ioFTPD Scripter
 
Join Date: Jan 2003
Posts: 277
Default

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
__________________
#iotools #ioftpd (both on efnet)
tuff is offline   Reply With Quote
Old 03-05-2006, 02:02 PM   #3
devereuxx
Junior Member
 
Join Date: Mar 2006
Posts: 3
Default

Quote:
Originally Posted by tuff
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
devereuxx is offline   Reply With Quote
Old 03-05-2006, 05:59 PM   #4
EwarWoo
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 462
Default

Quote:
Originally Posted by devereuxx
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.
EwarWoo is offline   Reply With Quote
Old 03-05-2006, 07:11 PM   #5
devereuxx
Junior Member
 
Join Date: Mar 2006
Posts: 3
Default

Quote:
Originally Posted by EwarWoo
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
devereuxx is offline   Reply With Quote
Old 03-05-2006, 09:26 PM   #6
EwarWoo
Senior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2002
Posts: 462
Default

Quote:
Originally Posted by devereuxx
if he just would have explained like u did it would have been way easier for me 2 get it aswell
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.
EwarWoo is offline   Reply With Quote
Old 04-09-2006, 03:46 PM   #7
zOrP
Senior Member
 
Join Date: Jan 2005
Posts: 282
Default

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..
zOrP is offline   Reply With Quote
Old 04-13-2006, 02:38 PM   #8
jeza
Senior Member
ioFTPD Scripter
 
jeza's Avatar
 
Join Date: May 2003
Posts: 530
Default

Quote:
Originally Posted by devereuxx
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
Code:
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
jeza is offline   Reply With Quote
Reply

Tags
append, dir, make, makes, username

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 Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:47 AM.

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