FileSystemExtensions Class

Summary

Extension methods on System.IO.Abstractions.IFileSystem for common file-system operations.
Assembly
GitVersion.Core.dll
Namespace
GitVersion.Extensions
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["FileSystemExtensions"] class Type type-node

Syntax

public static class FileSystemExtensions

Attributes

Type Description
NullableContextAttribute
NullableAttribute

Methods

Name Value Summary
FindGitDir(IFileSystem, string) Nullable<string, string>
Walks up the directory tree from path looking for a .git directory or file, returning the git directory and working-tree paths when found.
static
GetLastDirectoryWrite(IFileSystem, string) long
Returns the latest last-write timestamp (in UTC ticks) of any subdirectory under path.
static