FileUtils Class

Summary

Provides modified version for Copy and Move from the File class that allow for filter chain processing.
Assembly
NAnt.Core.dll
Namespace
NAnt.Core.Util
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["FileUtils"] class Type type-node

Syntax

public static class FileUtils

Methods

Name Value Summary
CombinePaths(string, string) string
Combines two path strings.
static
CopyDirectory(string, string) void
Copies the contents of a directory to another directory recursively.
static
CopyFile(string, string, FilterChain, Encoding, Encoding) void
Copies a file filtering its content through the filter chain.
static
GetFullPath(string) string
Returns Absolute Path (Fix for 260 Char Limit of Path.GetFullPath(...))
static
GetHomeDirectory() string
Returns the home directory of the current user.
static
GetTempDirectory() DirectoryInfo
Returns a uniquely named empty temporary directory on disk.
static
MoveFile(string, string, FilterChain, Encoding, Encoding) void
Moves a file filtering its content through the filter chain.
static
ReadFile(string, FilterChain, Encoding) string
Reads a file filtering its content through the filter chain.
static
ResolveFile(string[], string, bool) string
Scans a list of directories for the specified filename.
static