C# Class Scenarioo.Api.Util.Files.FilesUtil

Show file Open project: scenarioo/scenarioo-cs

Public Methods

Method Description
EncodeName ( string name ) : string
GetListOfFiles ( string directory ) : string[]

Read all files from 'directory'.

GetListOfFilesFromSubdirs ( string directory, string filename ) : string[]

Read all files with given name from all subdirectories of 'directory'.

ListFiles ( string directory ) : string[]

List all files in the given directory sorted alphanumerically using a collator.

Method Details

EncodeName() public static method

public static EncodeName ( string name ) : string
name string
return string

GetListOfFiles() public static method

Read all files from 'directory'.
public static GetListOfFiles ( string directory ) : string[]
directory string ///
return string[]

GetListOfFilesFromSubdirs() public static method

Read all files with given name from all subdirectories of 'directory'.
public static GetListOfFilesFromSubdirs ( string directory, string filename ) : string[]
directory string
filename string
return string[]

ListFiles() public static method

List all files in the given directory sorted alphanumerically using a collator.
public static ListFiles ( string directory ) : string[]
directory string
return string[]