Show / Hide Table of Contents

Enum FEFlags

flags for filesystem.enumerate.

[Flags]
public enum FEFlags

Namespace: Au.Types
Assembly: Au.dll

Fields

Name Description
AllDescendants

Enumerate all descendants, not only direct children. Also known as "recurse subdirectories".

IgnoreInaccessible

If fails to get the contents of the directory or a subdirectory because of its security settings, assume that the [sub]directory is empty. Without this flag then throws exception or calls errorHandler.

NeedRelativePaths

Let FEFile.Name be path relative to the specified directory path. Like @"\name.txt" or @"\subdirectory\name.txt" instead of "name.txt".

OnlyFiles

Get only files and not subdirectories. Note: the dirFilter callback function is called just to ask whether to include children.

RecurseNtfsLinks

Also enumerate target directories of NTFS links, such as symbolic links and mount points. Use with AllDescendants.

SkipHidden

Skip files and subdirectories that have Hidden attribute.

SkipHiddenSystem

Skip files and subdirectories that have Hidden and System attributes (both). These files/directories usually are created and used only by the operating system. Drives usually have several such directories. Another example - thumbnail cache files. Without this flag the function skips only these hidden-system root directories when enumerating a drive: $Recycle.Bin, System Volume Information, Recovery. If you want to include them too, use network path of the drive, for example @"\\localhost\D$\" for D drive.

UseRawPath

Don't call pathname.normalize and don't throw exception for non-full path.

Extension Methods

ExtMisc.HasAny<FEFlags>(FEFlags, FEFlags)
ExtMisc.Has<FEFlags>(FEFlags, FEFlags)
ExtMisc.SetFlag<FEFlags>(ref FEFlags, FEFlags, bool)