C# 클래스 Microsoft.Azure.Commands.Common.Authentication.FileUtilities

파일 보기 프로젝트 열기: Azure/azure-powershell

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
FileUtilities ( ) : Microsoft.Azure.Commands.Common.Authentication.Models

메소드 상세

CombinePath() 공개 정적인 메소드

public static CombinePath ( ) : string
리턴 string

CopyDirectory() 공개 정적인 메소드

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

CreateTempDirectory() 공개 정적인 메소드

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

DirectoryCopy() 공개 정적인 메소드

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
리턴 void

EnsureDirectoryExists() 공개 정적인 메소드

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
리턴 void

GetAssemblyDirectory() 공개 정적인 메소드

public static GetAssemblyDirectory ( ) : string
리턴 string

GetContentFilePath() 공개 정적인 메소드

public static GetContentFilePath ( string fileName ) : string
fileName string
리턴 string

GetContentFilePath() 공개 정적인 메소드

public static GetContentFilePath ( string startDirectory, string fileName ) : string
startDirectory string
fileName string
리턴 string

GetFileEncoding() 공개 정적인 메소드

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

GetInstallPath() 공개 정적인 메소드

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

GetModuleFolderName() 공개 정적인 메소드

public static GetModuleFolderName ( AzureModule module ) : string
module AzureModule
리턴 string

GetModuleName() 공개 정적인 메소드

public static GetModuleName ( AzureModule module ) : string
module AzureModule
리턴 string

GetPSModulePathForModule() 공개 정적인 메소드

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

GetWithProgramFilesPath() 공개 정적인 메소드

public static GetWithProgramFilesPath ( string directoryName, bool throwIfNotFound ) : string
directoryName string
throwIfNotFound bool
리턴 string

IsValidDirectoryPath() 공개 정적인 메소드

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

RecreateDirectory() 공개 정적인 메소드

public static RecreateDirectory ( string dir ) : void
dir string
리턴 void