C# Class Microsoft.Azure.Commands.Common.Authentication.FileUtilities

ファイルを表示 Open project: Azure/azure-powershell

Public Methods

Method Description
CombinePath ( ) : string
CopyDirectory ( string sourceDirectory, string destinationDirectory ) : void

Copy a directory from one path to another.

CreateTempDirectory ( ) : string

Create a unique temp directory.

DirectoryCopy ( string sourceDirName, string destDirName, bool copySubDirs ) : void

Copies a directory.

EnsureDirectoryExists ( string pathName ) : void

Ensures that a directory exists beofre attempting to write a file

GetAssemblyDirectory ( ) : string
GetContentFilePath ( string fileName ) : string
GetContentFilePath ( string startDirectory, string fileName ) : string
GetFileEncoding ( string path ) : Encoding
GetInstallPath ( ) : string

Gets the root directory for all modules installation.

GetModuleFolderName ( AzureModule module ) : string
GetModuleName ( AzureModule module ) : string
GetPSModulePathForModule ( AzureModule module ) : string

Gets the root installation path for the given Azure module.

GetWithProgramFilesPath ( string directoryName, bool throwIfNotFound ) : string
IsValidDirectoryPath ( string path ) : bool

Returns true if path is a valid directory.

RecreateDirectory ( string dir ) : void

Private Methods

Method Description
FileUtilities ( ) : Microsoft.Azure.Commands.Common.Authentication.Models

Method Details

CombinePath() public static method

public static CombinePath ( ) : string
return string

CopyDirectory() public static method

Copy a directory from one path to another.
public static CopyDirectory ( string sourceDirectory, string destinationDirectory ) : void
sourceDirectory string Source directory.
destinationDirectory string Destination directory.
return void

CreateTempDirectory() public static method

Create a unique temp directory.
public static CreateTempDirectory ( ) : string
return string

DirectoryCopy() public static method

Copies a directory.
public static DirectoryCopy ( string sourceDirName, string destDirName, bool copySubDirs ) : void
sourceDirName string The source directory name
destDirName string The destination directory name
copySubDirs bool Should the copy be recursive
return void

EnsureDirectoryExists() public static method

Ensures that a directory exists beofre attempting to write a file
public static EnsureDirectoryExists ( string pathName ) : void
pathName string The path to the file that will be created
return void

GetAssemblyDirectory() public static method

public static GetAssemblyDirectory ( ) : string
return string

GetContentFilePath() public static method

public static GetContentFilePath ( string fileName ) : string
fileName string
return string

GetContentFilePath() public static method

public static GetContentFilePath ( string startDirectory, string fileName ) : string
startDirectory string
fileName string
return string

GetFileEncoding() public static method

public static GetFileEncoding ( string path ) : Encoding
path string
return System.Text.Encoding

GetInstallPath() public static method

Gets the root directory for all modules installation.
public static GetInstallPath ( ) : string
return string

GetModuleFolderName() public static method

public static GetModuleFolderName ( AzureModule module ) : string
module AzureModule
return string

GetModuleName() public static method

public static GetModuleName ( AzureModule module ) : string
module AzureModule
return string

GetPSModulePathForModule() public static method

Gets the root installation path for the given Azure module.
public static GetPSModulePathForModule ( AzureModule module ) : string
module AzureModule The module name
return string

GetWithProgramFilesPath() public static method

public static GetWithProgramFilesPath ( string directoryName, bool throwIfNotFound ) : string
directoryName string
throwIfNotFound bool
return string

IsValidDirectoryPath() public static method

Returns true if path is a valid directory.
public static IsValidDirectoryPath ( string path ) : bool
path string
return bool

RecreateDirectory() public static method

public static RecreateDirectory ( string dir ) : void
dir string
return void