Чтение файлов и папок - рекурсия
Code (php)
-
-
Function listdir($start_dir=‘.’) {
-
-
# loop through the files, skipping . and .., and recursing if necessary
-
$filepath = $start_dir . ‘/’ . $file;
-
else
-
}
-
} else {
-
# false if the function was called with an invalid non-directory argument
-
$files = false;
-
}
-
-
return $files;
-
}
-
