0 votes
by (140 points)
retagged by

Hello Rebex Team,

I tried several different ways to add path to a user account through the BuruSftp CLI. None worked. Can you help?

burusftp.exe path --virt VirtualDirName  --phys C:\FTPRoot\New folder\Sub Folder  --username testuser --fset A
Unexpected value for option --phys: folder\Sub
Unexpected value for option --phys: Folder
Usage: burusftp path [<options>]
Type burusftp path --help for help

burusftp.exe path --virt VirtualDirName  --phys "C:\FTPRoot\New folder\Sub Folder"  --username testuser  --fset A
Please specify valid path, e.g. /dir1/dir2

burusftp.exe path --virt VirtualDirName  --phys ""C:\FTPRoot\New folder\Sub Folder""  --username testuser  --fset A
Unexpected value for option --phys: folder\Sub
Unexpected value for option --phys: Folder
Usage: burusftp path [<options>]
Type burusftp path --help for help

burusftp.exe path --virt VirtualDirName  --phys """C:\FTPRoot\New folder\Sub Folder"""  --username testuser  --fset A
Please specify valid path, e.g. /dir1/dir2

burusftp.exe path --virt VirtualDirName  --phys "C:/FTPRoot/New folder/Sub Folder"  --username testuser  --fset A
Please specify valid path, e.g. /dir1/dir2

burusftp.exe path --virt VirtualDirName  --phys ""C:/FTPRoot/New folder/Sub Folder""  --username testuser  --fset A
Unexpected value for option --phys: folder/Sub
Unexpected value for option --phys: Folder
Usage: burusftp path [<options>]
Type burusftp path --help for help

burusftp.exe path --virt VirtualDirName  --phys 'C:\FTPRoot\New folder\Sub Folder'  --username testuser  --fset A
Unexpected value for option --phys: folder\Sub
Unexpected value for option --phys: Folder'
Usage: burusftp path [<options>]
Type burusftp path --help for help

burusftp.exe path --virt VirtualDirName  --phys ''C:/FTPRoot/New folder/Sub Folder''  --username testuser  --fset A
Unexpected value for option --phys: folder/Sub
Unexpected value for option --phys: Folder'
Usage: burusftp path [<options>]
Type burusftp path --help for help

burusftp.exe path --virt VirtualDirName  --phys C:/FTPRoot/New_folder/Sub_Folder  --username testuser  --fset A
Please specify valid path, e.g. /dir1/dir2

burusftp.exe path --virt VirtualDirName  --phys C:\FTPRoot\New_folder\Sub_Folder  --username testuser  --fset A
Please specify valid path, e.g. /dir1/dir2

closed with the note: Solved

1 Answer

0 votes
by (140 points)
I figured it out:
You use double quotes for physical path and must start virtual path with forward slash

burusftp.exe path --virt /VirtualDirName  --phys "C:\FTPRoot\New folder\Sub Folder"  --username testuser  --fset A
Path /VirtualDirName => C:\FTPRoot\New folder\Sub Folder set for user testuser.
...