Hi!
Donation last version
Scenario:
Place A --> time&size --> include: *.jpg --> exclude: standart list --> Mirror: Place B
Result: After moving or deleting files in Place A, old folders (but empty) still remain in Place B, and now i have lots of folder duplicates, which quantities grown up after every new action with files in Place A.
Empty folders on mirror side
- Posts: 3
- Joined: 6 Nov 2018
- Posts: 2524
- Joined: 22 Aug 2012
Correct!
FFS creates folders in the destination (mirror) location to duplicate the folder structure of the source location in the destination (mirror) location, as far as necessary to copy synced files into.
Conversely, FFS does not remove folders in the destination (mirror) location upon such folders
having become empty during a sync.
If you are bothered by being left with empty folders in your mirror location, you might incidentally manually run a empty directory cleanup script or tool, or structurally launch such script or tool every time FFS completes its sync.
(at the bottom of the Synchronization Settings (F8) window, "Run a command after synchronization: On completion)
FFS creates folders in the destination (mirror) location to duplicate the folder structure of the source location in the destination (mirror) location, as far as necessary to copy synced files into.
Conversely, FFS does not remove folders in the destination (mirror) location upon such folders
having become empty during a sync.
If you are bothered by being left with empty folders in your mirror location, you might incidentally manually run a empty directory cleanup script or tool, or structurally launch such script or tool every time FFS completes its sync.
(at the bottom of the Synchronization Settings (F8) window, "Run a command after synchronization: On completion)
- Posts: 3
- Joined: 6 Nov 2018
Can you please recommend good script or tool?
Thank You for your help :)... you might incidentally manually run a empty directory cleanup script or tool, or structurally launch such script or tool every time FFS completes its sync.
(at the bottom of the Synchronization Settings (F8) window, "Run a command after synchronization: On completion) Plerry, 07 Nov 2018, 07:48
- Posts: 2524
- Joined: 22 Aug 2012
No own experience, but you might want to look into
Using a graphical or command-line tool:
https://www.raymond.cc/blog/easily-removing-empty-directories-from-windows/
Using a direct command line entry:
https://superuser.com/questions/39674/recursively-delete-empty-directories-in-windows
Using a graphical or command-line tool:
https://www.raymond.cc/blog/easily-removing-empty-directories-from-windows/
Using a direct command line entry:
https://superuser.com/questions/39674/recursively-delete-empty-directories-in-windows
- Posts: 3
- Joined: 6 Nov 2018
Thanks for help
I used this solution (if someone needs to):
Create new file delete-empty-folders.txt and put there this code:
After rename file
delete-empty-folders.txt ---> delete-empty-folders.bat
Run this file inside any folder which you wanna to clean. It delete all empty folders and sub folders
I used this solution (if someone needs to):
Create new file delete-empty-folders.txt and put there this code:
for /f "delims=" %%a in ('dir /a:d /s /b ') do dir /b "%%a"|find /v ""||rd "%%a"
delete-empty-folders.txt ---> delete-empty-folders.bat
Run this file inside any folder which you wanna to clean. It delete all empty folders and sub folders
- Posts: 1
- Joined: 26 Feb 2019
It would be nice if destination is an exact mirror of the source including deleting empty folders.
Running a script afterwards to remove empty directories in destination is not a solution as you might want to have empty directories intentionally in the source. So when you restore your backup you're missing these dirs.
Running a script afterwards to remove empty directories in destination is not a solution as you might want to have empty directories intentionally in the source. So when you restore your backup you're missing these dirs.