Final Summary Of A Solution To Remove Illegal Trailing Spaces From Files/Folders In Windows:
Install FarManager (Free)https://farmanager.com/download.php?l=en
Plugin Installation For LuaFAR Search:
1. go to https://plugring.farmanager.com/plugin.php?pid=858&l=en
2. Download either x86 or x64 version - it must match your Far Manager bitness
P.S. Do not jump from this page to Github, use one of the "Download" buttons from this page only
3. go to your Far Manager installation location, (example: C:\Users\UserName\AppData\Local\Far Manager x64\Plugins) enter Plugins folder, make a subfolder called "LuafarSearch" and unpack the plugin archive into this folder. Then restart Far Manager. Make sure the plugin's bitness matches FarManager bitness (either x86 or x64).
Search and Replace using LuaFAR Search
1. Be careful with automatic renaming - it is easy to get it wrong.
2. Using LuaFAR Search plugin: press F11, select LuaFar Search, select Rename,
- Code: Select all
????????????????????????????? LF Rename ??????????????????????????????
? File mask: * ??
? (•) Search in all [x] Rename files ?
? ( ) Search in selected [x] Rename folders ?
? [x] Process subfolders ?
??????????????????????????????????????????????????????????????????????
? Search for: ?
? \s+$ ??
? Replace with: ?
? ??
? [ ] Function mode [x] Confirm renaming ?
? [x] Log file ?
Alternate Methods:
1. There are several plugins for files/directory renaming. You can find them by searching on thishttps://forum.farmanager.com/ andhttps://plugring.farmanager.com/.
2. Press AltF7
Search for: /.+\s$/
After the search is complete, press [ Panel ] button to move all results to a temporary panel to "delete/correct" or do whatever you need
3. Alternate plugin to try: Visual Rename. It can rename files by RegExp too https://plugring.farmanager.com/
Information Helpful to BRU New Functionality for Finding and Dealing With Illegal Characters and File/Folder Trailing Spaces:
According to Pepak in the forumhttps://forum.farmanager.com/viewtopic.php?t=12123
- Archiving-apps like WinRar, 7Zip, etc do use Windows APIs. Note that there are multiple APIs that can do "the same thing", but some of them allow more detailed control over what is happening
- An app relying on the wrong API might fail to access other 'illegal' situations like "FolderNames \" that end with a trailing space.
- If anyone wants to create "BadFolderNames " for testing just press F7 and create such a directory in FAR.
**My sincere thanks to all who contributed comments and suggestions toward reaching a resolution of this dreaded windows file/folder trailing space issue.**
Note: The FTP Server is functional again and I will leave it active for a few weeks in case anyone wants to try manipulating trailing space folders without creating them in FarManager