Go Back   FlashFXP Forums > >

FlashFXP v5.x Public Beta Please direct all comments, suggestions, bug reports, and feedback for public beta releases to this forum.

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 09-24-2015, 10:09 AM   #1
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default Retrieve path to selected directory for custom command

Hi,

in this discussion i asked how to extend the FFXP Move command to create symlinks after moving a directory. Today i started to create a custom command to just create a symlink for the selected directory into another directory somewhere on the site. Here's my code:
Code:
# Creates a symlink under the selected directory
/require remote
/set @dst@ $selectfolder("Create SymLink", "Select Folder:")
{
    MKD "@dst@%f"
    site chmod 755 "@dst@%f"
    site chattr +l "@dst@%f" "%p%f"
}
/list
Now there's an issues. The directory attributes are not changed via the CHMOD command. Can somebody please explain, why is that and how to make it work?

Last edited by brackebuschtino; 09-24-2015 at 10:16 AM.
brackebuschtino is offline  
Old 09-25-2015, 09:27 AM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

Try removing the double quotes and see if that works, the FTP server may not like them.

site chmod 755 @dst@%f

If that doesn't work please include a copy of the session log
bigstar is offline  
Old 09-25-2015, 10:14 AM   #3
brackebuschtino
Member
FlashFXP Registered User
 
Join Date: Feb 2012
Location: /dev/null
Posts: 40
Default

This solved the problem. Thank you very much.

Last edited by brackebuschtino; 09-26-2015 at 07:26 AM.
brackebuschtino is offline  
Closed Thread

Tags
directory, symlink, command, selected, create, work, site, chmod, @dst@%f, path

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 02:45 PM.

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