Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
sub dir_scan {
my($curr_path) = $_0 ;
my($local_file) ;
if (-f $curr_path) {
# global var here
$dir_list{'file'}{$curr_path) = 1 ;
} elsif (-d $curr_path)
$dir_list{'dir'}{$curr_path) = 1 ;
if (opendir(DH, $curr_path))) {
foreach $local_file (grep !/^\.\.?$/, readdir DH) {
&dir_scan($local_file);
};
} else {
# Save off the usual $!, $? $@ error vars
# here as appropriate.
#$dir_list{'dir_err'}{$curr_path) = <err data>
};
# Personal pref - I like putting this out here vs.
# under the 'if-true' - Mostly subjected to Win env
# and sometimes this sort of thing makes the difference
# between getting a call at 2am when something obscure
# is locked up.
closedir DH ;
} else {
# Ends up being an interesting way to investigate
# your particular OS.
$dir_list{'other'}{$curr_path) = 1 ;
};
return 1;
};
foreach $local_file (grep !/^\.\.?$/, readdir DH) {
&dir_scan("[b]$curr_path/[/b]$local_file");
};