The referenced directory remains. FWIW, here's the details under perl -d$CDs = '/usr/local/opt/podcasts/CDs'; sub dir_addup { my $st = stat($File::Find::name); $dir_total += $st->size; } find(\&dir_addup, $CDs); some stuff, including creating subdir and adding files therein find(\&dir_addup, $CDs); Use of uninitialized value $cwd_untainted in chdir at /usr/share/perl5 +/File/Find.pm line 282. Use of uninitialized value $cwd in concatenation (.) or string at /usr +/share/perl5/File/Find.pm line 283. Can't cd to : No such file or directory
Use of uninitialized value $cwd_untainted in chdir at /usr/share/perl5 +/File/Find.pm line 282. at /usr/share/perl5/File/Find.pm line 282. File::Find::_find_opt(HASH(0x555f6ead3b50), "/usr/local/opt/podcas +ts/CDs/Django_Reinhardt_Djangology_08") called at /usr/share/perl5/Fi +le/Find.pm line 760 File::Find::find(CODE(0x555f6ed3e838), "/usr/local/opt/podcasts/CD +s/Django_Reinhardt_Djangology_08") called at CD_rip.pl line 126 Use of uninitialized value $cwd in concatenation (.) or string at /usr +/share/perl5/File/Find.pm line 283. at /usr/share/perl5/File/Find.pm line 283. File::Find::_find_opt(HASH(0x555f6ead3b50), "/usr/local/opt/podcas +ts/CDs/Django_Reinhardt_Djangology_08") called at /usr/share/perl5/Fi +le/Find.pm line 760 File::Find::find(CODE(0x555f6ed3e838), "/usr/local/opt/podcasts/CD +s/Django_Reinhardt_Djangology_08") called at CD_rip.pl line 126 Can't cd to : No such file or directory at /usr/share/perl5/File/Find.pm line 283. File::Find::_find_opt(HASH(0x555f6ead3b50), "/usr/local/opt/podcas +ts/CDs/Django_Reinhardt_Djangology_08") called at /usr/share/perl5/Fi +le/Find.pm line 760 File::Find::find(CODE(0x555f6ed3e838), "/usr/local/opt/podcasts/CD +s/Django_Reinhardt_Djangology_08") called at CD_rip.pl line 126
In reply to Find.pm can't by geoffleach
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |