Top "Scandir" questions

List files and directories inside the specified path

How to check a path is a file or folder in PHP

I use scandir() to search files recursively. But if the file path directs to a file not a folder, there …

php file scandir
Php scandir() problems

I was wondering, my Scandir() function works on a php $_GET variable, so the variable returns the folder, but I'm …

php scandir
PHP: scandir() is too slow

I have to make a function that lists all subfolders into a folder. I have a no-file filter, but the …

php scandir
RecursiveDirectoryIterator gives exception

RecursiveDirectoryIterator gives Unexpected Value Exeception $path= WEB."sync_content/offer/"; $files = new RecursiveIteratorIterator( new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::LEAVES_ONLY ); foreach ($…

php scandir
AttributeError: 'module' object has no attribute 'scandir'

I have no idea why this is happening. Here's the function: def scanWallDir(basedir, scansubdirs=True): wallsOut = [] for entry in …

python python-3.x scandir python-os
Finding particular path in directory in Python

How could I find the path of the directory which contains a date like 20170423 ? meaning, it could be any date, …

python path subdirectory os.system scandir
Reading *.csv files from directory and showing the content of each file fails

I need help with reading the folder and opening / outputting the csv data, I have used examples other people have …

php csv fgetcsv opencsv scandir
How to get only video files from folder directory of all files in php?

I have some videos,images and text files in "uploads/video/" dir. Here i am getting all the files using …

php scandir
scandir - sort numeric filenames

Done some searching, but can't seem to find the exact answer I'm looking for. I'd like to pull in files …

php scandir
How to search file in folder by using php?

I have a folder called allfiles, and there are some files in this folder, such as 1212-how-to-sddk-thosd.html 3454-go-to-dlkkl-sdf.html 0987…

php glob scandir readdir opendir