brackebuschtino
09-24-2015, 10:09 AM
Hi,
in this discussion (https://oss.azurewebsites.net/forum/showthread.php?p=85501) 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:
# 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?
in this discussion (https://oss.azurewebsites.net/forum/showthread.php?p=85501) 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:
# 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?