PDA

View Full Version : more pwd blues itcl


mentality
06-02-2005, 08:14 PM
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.

neoxed
06-02-2005, 08:22 PM
$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.

darkone
06-02-2005, 08:23 PM
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
06-02-2005, 08:24 PM
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