Skip to content

DeTosis/DirectoryContentParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Directory Content Parser

A small c# script to get directories and files via path

Usage

Function to get all folders and files from a given path

bool GetDirectoryContents(
    string path, 
    out string[]? directoryContents
);

This function can also be overloaded with a file attributes to exclude from result

bool GetDirectoryContents(
    string path, 
    FileAttributes[] excludeAttributes,
    out string[]? directoryContents
);

Function for getting a name from path to a file, if needed also can return all parts of a given path

bool ExtractContentLastName(
    string fullName, 
    out string viewName, 
    out string[]? splitParts
);

About

Small Class for a simple operations with directories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages