Tag Info

New answers tagged


An issue with readdir is that it passes in only the filename, without the full path, to the data variable in your index function. Let's say you are calling the script from C:\main. The contents of C:\main are C:\main C:\main\folder1 C:\main\folder1\subDir1 Once your program enters folder1 and reads subDir1, it will try to call readdir with data[i] = ...

Top 50 recent answers are included