C# Class Dev2.Studio.Core.Helpers.FileHelper

Mostra file Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
CreateATemporaryFile ( StringBuilder fileContent, string uniqueOutputPath ) : string
CreateATemporaryFile ( string fileContent, string uniqueOutputPath ) : string
CreateDirectoryFromString ( string filePath ) : void
CreateTextFile ( StringBuilder outputTxt, string outputPath ) : void
CreateTextFile ( string outputTxt, string outputPath ) : void

Creates the file.

EnsurePathIsvalid ( string outputPath, string validExtension ) : void

Ensures the path isvalid.

GetAppDataPath ( string uri ) : string

Gets the app data path.

GetDebugItemTempFilePath ( string uri ) : string
GetFullPath ( string uri ) : string

Gets the full path based on a uri and the current assembly.

GetStudioLogTempPath ( ) : string
GetUniqueOutputPath ( string extension ) : string

Gets the ouput path.

MigrateTempData ( string rootPath ) : void

Method Details

CreateATemporaryFile() public static method

public static CreateATemporaryFile ( StringBuilder fileContent, string uniqueOutputPath ) : string
fileContent StringBuilder
uniqueOutputPath string
return string

CreateATemporaryFile() public static method

public static CreateATemporaryFile ( string fileContent, string uniqueOutputPath ) : string
fileContent string
uniqueOutputPath string
return string

CreateDirectoryFromString() public static method

public static CreateDirectoryFromString ( string filePath ) : void
filePath string
return void

CreateTextFile() public static method

public static CreateTextFile ( StringBuilder outputTxt, string outputPath ) : void
outputTxt StringBuilder
outputPath string
return void

CreateTextFile() public static method

Creates the file.
public static CreateTextFile ( string outputTxt, string outputPath ) : void
outputTxt string The text to output to the path
outputPath string The output path.
return void

EnsurePathIsvalid() public static method

Ensures the path isvalid.
File specified in the output path already exists.
public static EnsurePathIsvalid ( string outputPath, string validExtension ) : void
outputPath string
validExtension string
return void

GetAppDataPath() public static method

Gets the app data path.
public static GetAppDataPath ( string uri ) : string
uri string The URI.
return string

GetDebugItemTempFilePath() public static method

public static GetDebugItemTempFilePath ( string uri ) : string
uri string
return string

GetFullPath() public static method

Gets the full path based on a uri and the current assembly.
public static GetFullPath ( string uri ) : string
uri string The URI.
return string

GetStudioLogTempPath() public static method

public static GetStudioLogTempPath ( ) : string
return string

GetUniqueOutputPath() public static method

Gets the ouput path.
public static GetUniqueOutputPath ( string extension ) : string
extension string
return string

MigrateTempData() public static method

public static MigrateTempData ( string rootPath ) : void
rootPath string
return void