mirror of
https://github.com/unraid/webgui.git
synced 2026-01-13 21:20:01 -06:00
Prevents moving a directory into its own subdirectory, which would cause rsync --backup-dir to create nested structures and fail to delete source. Example prevented: /mnt/disk1/parent → /mnt/disk1/parent/subfolder The check uses trailing slashes to ensure exact directory boundary matching and prevent false positives (e.g., /parent vs /parent2).