Problem with mac is that it allows space character at end of file or folder.
If this file or folder with space character in end is beeing copied to FTP using Filezilla or Dropbox then mac makes folders with "Foldername_WhiteSpaceConflict"
To get rid of this problem all files and folders with space character needs to be renamed without space character.
What solution could be the best using terminal or some program?
MacOS – How to remove space character (whitespace) from end of filenames and foldernames
command linemacosspacesterminal
Related Question
- MacOS – Why Does a Shell Script Trapping SIGTERM Work When Run Manually, But Not When Run via launchd
- MacOS – Automator service for FTP
- MacOS – Incomplete FTP transfers with Yosemite (Transmit & FileZilla)
- MacOS – Finder gets confused after using the mv command in the Dropbox folders
- Terminal find, rename by deletion
- MacOS – How to search Mac for files that begin or end with a space “ ” or period “.”
- Mac – Is it possible to execute the package (located in FTP) from terminal of Mac
- MacOS – Mac – How to copy Documents directory to a USB stick
Best Answer
Here's the script to find and remove trailing space from files and dirs: