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 ) : |
||
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 |
Method | Description | |
---|---|---|
FileUtilities ( ) : Microsoft.Azure.Commands.Common.Authentication.Models |
public static CopyDirectory ( string sourceDirectory, string destinationDirectory ) : void | ||
sourceDirectory | string | Source directory. |
destinationDirectory | string | Destination directory. |
return | void |
public static CreateTempDirectory ( ) : string | ||
return | string |
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 |
public static EnsureDirectoryExists ( string pathName ) : void | ||
pathName | string | The path to the file that will be created |
return | void |
public static GetAssemblyDirectory ( ) : string | ||
return | string |
public static GetContentFilePath ( string fileName ) : string | ||
fileName | string | |
return | string |
public static GetContentFilePath ( string startDirectory, string fileName ) : string | ||
startDirectory | string | |
fileName | string | |
return | string |
public static GetFileEncoding ( string path ) : |
||
path | string | |
return |
public static GetModuleFolderName ( AzureModule module ) : string | ||
module | AzureModule | |
return | string |
public static GetModuleName ( AzureModule module ) : string | ||
module | AzureModule | |
return | string |
public static GetPSModulePathForModule ( AzureModule module ) : string | ||
module | AzureModule | The module name |
return | string |
public static GetWithProgramFilesPath ( string directoryName, bool throwIfNotFound ) : string | ||
directoryName | string | |
throwIfNotFound | bool | |
return | string |
public static IsValidDirectoryPath ( string path ) : bool | ||
path | string | |
return | bool |
public static RecreateDirectory ( string dir ) : void | ||
dir | string | |
return | void |