esamett
Patron
- Joined
- May 28, 2011
- Messages
- 345
I have read several tutorials for Linux and FreeBSD for dealing with spaces in Windows file/directory names, such as:
http://www.cyberciti.biz/faq/rsync-transfer-filename-that-contains-whitespace/
I got stumped trying to use CLI shell to access:
/mnt/tank1/video-server/-- Video
As exampled below FreeBSD either thinks I am trying to issue a "--" <flag>, or adds the single or double quote to the directory path:
The reason I need to do this is that I copied a subdirectory with Windows Explorer, and now I cannot delete it:
An unexpected error is keeping you from deleting the file. If you continue to receive this error, you can use the error code to search for help with this problem.
error 0xF1020004: No error description available
I thought of using the FreeNAS command line to fix my problem.
Advice appreciated,
http://www.cyberciti.biz/faq/rsync-transfer-filename-that-contains-whitespace/
I got stumped trying to use CLI shell to access:
/mnt/tank1/video-server/-- Video
As exampled below FreeBSD either thinks I am trying to issue a "--" <flag>, or adds the single or double quote to the directory path:
Code:
hell ls: illegal option -- - usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwxy1,] [-D format] [file ...] [root@freenas /mnt/tank1/video-server]# ls \-\-\ Video ls: illegal option -- - usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwxy1,] [-D format] [file ...] [root@freenas /mnt/tank1/video-server]# ls '\-\-\ Video' ls: \-\-\ Video: No such file or directory [root@freenas /mnt/tank1/video-server]# ls '\\ Video' ls: \\ Video: No such file or directory [root@freenas /mnt/tank1/video-server]# ls '-- Video' ls: illegal option -- - usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwxy1,] [-D format] [file ...] [root@freenas /mnt/tank1/video-server]# ls '"--" Video' ls: "--" Video: No such file or directory [root@freenas /mnt/tank1/video-server]# ls "'--' Video" ls: '--' Video: No such file or directory [root@freenas /mnt/tank1/video-server]# ls '\-\-\ Video' ls: \-\-\ Video: No such file or directory [root@freenas /mnt/tank1/video-server]# ls '\-- Video' ls: \-- Video: No such file or directory [root@freenas /mnt/tank1/video-server]# ls '-- 'Video ls: illegal option -- - usage: ls [-ABCFGHILPRSTUWZabcdfghiklmnopqrstuwxy1,] [-D format] [file ...] [root@freenas /mnt/tank1/video-server]#
The reason I need to do this is that I copied a subdirectory with Windows Explorer, and now I cannot delete it:
An unexpected error is keeping you from deleting the file. If you continue to receive this error, you can use the error code to search for help with this problem.
error 0xF1020004: No error description available
I thought of using the FreeNAS command line to fix my problem.
Advice appreciated,