std.file.listdir doesn't work on directory NTFS directory mounted

miraks s.mankowski at miraks.com
Sat Feb 24 03:57:14 PST 2007


Frits van Bommel Wrote:

> miraks wrote:
> > Hi,
> > 
> > I am on MANDRIVA 2007 and I am using NTFS-3G to mount NTFS directory.
> > 
> > When I use the following code on a directory containing mp3 files:
> > auto d_source_files = std.file.listdir(args[1], "*.mp3");
> > The list is empty.
> > 
> > If I launch the same code on the same data but on a FAT32 disc, then the result is the expected one.
> > 
> > Why std.file.listdir works on FAT32 and not on NTFS ? 
> 
> Does 'ls' show different results in the directories? Case differences 
> maybe? (i.e. .MP3 vs .mp3)

It's not due to different cases.
I tried auto d_source_files = std.file.listdir(args[1], "*");

In this case, the list is not empty. The list contains only the direct child directories.
Conclusion: The "recursive" mode doesn't work on NTFS disc.

In fact, 



More information about the Digitalmars-d mailing list