1

Closed

not working in 2.0.1, but im 1.0.7

description

   ' Get subfiles
            Dim allSubFiles As IEnumerable = SchwabenCode.QuickIO.QuickIODirectory.EnumerateFiles(QueryPath, SearchOption.AllDirectories)
            For Each fileInfo As SchwabenCode.QuickIO.QuickIOFileInfo In allSubFiles
                Console.WriteLine("File found: {0} Readonly: {1}", fileInfo.FullName, fileInfo.IsReadOnly)
            Next
Above translation of sample-code to VB.

If using V1.0.7.0 it works. If using V2.0.1.0 I get error "File not found".

I tested on Win 8, .NET4.0
Closed Sep 9, 2014 at 10:57 AM by BenjaminAbt
Closed due to no reaction.

comments

BenjaminAbt wrote Aug 22, 2014 at 5:31 PM

On which page did you copied the sample? Maybe I've missed to update the sample due to the changes of Version 2.0
Example should be
IEnumerable<QuickIOFileInfo> allSubFiles = QuickIODirectory.EnumerateFiles( @"myFolder", "*", SearchOption.AllDirectories );
Since 2.0 you're able to add a native search pattern. The signature has been changed minimally.