in reply to Re^4: Copy dir with space (Path::Tiny)
in thread Copy dir with space

Those are directories. Look at the code you've run, it tests for files ( -f $_). Directories are not regular files. Tutorials->Basic debugging checklist.

Update: Pleases don't get into the habbit of blindly running code which you don't understand.