Those files are probably system files. I guess by default .Net returns ALL
files in directory, which makes sense. I'm sure there's some way to filter
out hidden/system ones. Now, if it was a Janet Jackson album cover then
maybe half of it would be visible....!
[quoted text, click to view] "Francisco" <anonymous@discussions.microsoft.com> wrote in message
news:c78001c40fca$5ead1b70$a001280a@phx.gbl...
> Hi, I have an empty directory, but actually there are a
> few files in there which windows explorer does not want
> to show me, even when -show hidden files- is checked.
> Nevertheless, if I type the full file path, I can
> actually open those files.
>
> End result...a user is given information about files
> which do not visually exist.
>
> Could this be hard drive trash/residues?
>
> As an example, I find, where I previously had a beach
> boys music collection and the respective album cover,
> that one leftover is actually the folder.jpg thumbnail
> image windows embbeded on the folder, to look more user
> friendly: "Hey, this is Beach boys folder!"
>
> I have moved my songs to another directory, but this
> leftover is still there, as well as a file called
> desktop.ini
>
> Well, funny or not, I cannot base my application
> behaviour on an inconsistency between .NET directory
> contents status reporting and what the User actually sees
> in the directory, so please advice me.
>
> Im using plain simple DirectoryInfo and FileInfo objects
> and passing all directory contents to my FileInfo
> collection, so my code is not the problem.
>
> Thanks,
> Francisco