C# 클래스 Rosalia.FileSystem.FileSystemExtensions

A set of helpful extension methods for file system objects
파일 보기 프로젝트 열기: rosaliafx/Rosalia

공개 메소드들

메소드 설명
Closest ( this directory, Predicate predicate ) : IDirectory

Finds closest directory matching the predicate. Checks the directory itself and it's parents. Returns null if none of parent directories match the predicate.

GetParentsChain ( this directory ) : IEnumerable

Yields directory itself and all it's parents.

ReadAllText ( this file ) : string
SearchFilesRecursively ( this directory ) : FileList

Retrieves all directory files recursively.

WriteStringToFile ( this file, string content ) : void

Writes a string to a file.

비공개 메소드들

메소드 설명
GetFilesRecursivelySource ( this directory ) : IEnumerable
SearchFilesIn ( this directory ) : FileList

메소드 상세

Closest() 공개 정적인 메소드

Finds closest directory matching the predicate. Checks the directory itself and it's parents. Returns null if none of parent directories match the predicate.
public static Closest ( this directory, Predicate predicate ) : IDirectory
directory this
predicate Predicate
리턴 IDirectory

GetParentsChain() 공개 정적인 메소드

Yields directory itself and all it's parents.
public static GetParentsChain ( this directory ) : IEnumerable
directory this
리턴 IEnumerable

ReadAllText() 공개 정적인 메소드

public static ReadAllText ( this file ) : string
file this
리턴 string

SearchFilesRecursively() 공개 정적인 메소드

Retrieves all directory files recursively.
public static SearchFilesRecursively ( this directory ) : FileList
directory this target directory
리턴 System.IO.FileList

WriteStringToFile() 공개 정적인 메소드

Writes a string to a file.
public static WriteStringToFile ( this file, string content ) : void
file this destination file
content string string content
리턴 void