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 06-02-2005, 08:14 PM   #1
mentality
Junior Member
 
Join Date: May 2005
Posts: 14
Default more pwd blues itcl

when making a dir via cmd line in ffxp, you get the 2 exact halves of the pwd in $pwd && second part of $args, so u can join the 2. when making folder via upload, $pwd contains users curr pwd, but $args also contains full pwd to dir being made, kinda hard to build a proper pwd from this info, no way to check what is correct pwd, unless using client who info :?

or am i missing something (maybe?)

nm. i c how its going now, if MKD contains / in arg then its gonna make dir from vfs path contained in arg, else will make in users current pwd.
mentality is offline   Reply With Quote
Old 06-02-2005, 08:22 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

$args contains any arguments passed to the FTP command. Some clients specify the full paths and others specify relative paths when creating directories/uploading files/etc.
neoxed is offline   Reply With Quote
Old 06-02-2005, 08:23 PM   #3
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

If $args contain RELATIVE path, then you are supposed to append it to $PWD. RELATIVE path begins with non '/' character. If value in $args is not a relative path, then you should use directly that value.
darkone is offline   Reply With Quote
Old 06-02-2005, 08:24 PM   #4
darkone
Disabled
FlashFXP Registered User
ioFTPD Administrator
 
darkone's Avatar
 
Join Date: Dec 2001
Posts: 2,230
Default

Quote:
Originally posted by NeoXed
$args contains any arguments passed to the FTP command. Some clients specify the full paths and others specify relative paths when creating directories/uploading files/etc.
Damn you.. you beat me
darkone is offline   Reply With Quote
Reply

Tags
$pwd, dir, info, pwd, upload

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:55 AM.

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