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

Sure I have:

[root@adimac pr]# ls -l /pr/perl_by_example/ total 0 drwxr-xr-x 9 gherasima _unknown 306 Oct 8 2007 Chapter 03 drwxr-xr-x 24 gherasima _unknown 816 Oct 8 2007 Chapter 04 drwxr-xr-x 69 gherasima _unknown 2346 Oct 8 2007 Chapter 05 drwxr-xr-x 28 gherasima _unknown 952 Oct 8 2007 Chapter 06 drwxr-xr-x 28 gherasima _unknown 952 Oct 10 2007 Chapter 07 drwxr-xr-x 42 gherasima _unknown 1428 Oct 10 2007 Chapter 08 drwxr-xr-x 56 gherasima _unknown 1904 Oct 10 2007 Chapter 09 drwxr-xr-x 50 gherasima _unknown 1700 Oct 12 2007 Chapter 10 drwxr-xr-x 32 gherasima _unknown 1088 Oct 10 2007 Chapter 11 drwxr-xr-x 15 gherasima _unknown 510 Oct 11 2007 Chapter 12 drwxr-xr-x 18 gherasima _unknown 612 Oct 8 2007 Chapter 13 drwxr-xr-x 28 gherasima _unknown 952 Oct 11 2007 Chapter 14 drwxr-xr-x 13 gherasima _unknown 442 Oct 10 2007 Chapter 15 drwxr-xr-x 29 gherasima _unknown 986 Oct 11 2007 Chapter 16 drwxr-xr-x 41 gherasima _unknown 1394 Oct 13 2007 Chapter 17 drwxr-xr-x 66 gherasima _unknown 2244 Oct 13 2007 Chapter 18 drwxr-xr-x 15 gherasima _unknown 510 Oct 13 2007 Chapter 19 drwxr-xr-x 23 gherasima _unknown 782 Oct 13 2007 Chapter 20 [root@adimac pr]#

Replies are listed 'Best First'.
Re^5: Copy dir with space (Path::Tiny)
by marto (Cardinal) on Jul 10, 2014 at 11:37 UTC

    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.

Re^5: Copy dir with space (Path::Tiny)
by Anonymous Monk on Jul 10, 2014 at 11:36 UTC
    All of those things are directories