C# Class ATMLManagerLibrary.managers.FileManager

Datei anzeigen Open project: UtrsSoftware/ATMLWorkBench Class Usage Examples

Public Methods

Method Description
CopyFolder ( string sourceDirName, string destDirName, bool copySubDirs ) : void
DeleteDirectory ( string path, bool recursive ) : bool
DeleteDirectory ( string path ) : void
DeleteFile ( string fullFileName ) : void
FileExists ( string fileName ) : bool
GetFileNames ( List fileList, bool recurse ) : bool
GetFileNames ( List fileList, bool recurse, String searchPattern ) : bool
GetFileNames ( List fileList, string parentDirectory, bool recurse, String searchPattern, bool useShortNames = false ) : bool
GetFileNames ( List fileList, string parentDirectory, bool recurse, bool useShortNames = false ) : bool
GetFolderNames ( string startingLocation ) : List
OpenFile ( String &xmlContent, String &fileName, String filter ) : bool
OpenFile ( byte &byteContent, FileInfo &fileInfo ) : bool
OpenFile ( byte &byteContent, FileInfo &fileInfo, String filter ) : bool
OpenFolder ( String &selectedPath ) : bool
OpenXmlFile ( String &xmlContent ) : bool
OpenXmlFile ( String &xmlContent, String &fileName ) : bool
ReadFile ( String fileName ) : byte[]
ReadFile ( String fileName, FileInfo &fi ) : byte[]
RenameFile ( string oldName, string newName ) : void
RenameProjectFiles ( string projectPath, string oldName, string newName ) : void
SelectFiles ( List files ) : bool
SetFolderToMonitor ( string folder ) : void
WriteFile ( String fileName, byte fileContent ) : bool
WriteFile ( byte fileContent ) : bool
WriteFile ( byte fileContent, string fileName ) : bool
WriteFile ( byte fileContent, string filter, string fileName ) : bool

Private Methods

Method Description
ClearAttributes ( string strDest ) : void
DeleteDir ( string path ) : void
FileManager ( ) : System
InitiFileWatcher ( string path ) : void
OpenFile ( FileInfo fi, int timeOut ) : Stream
_fileWatcher_Changed ( object sender, FileSystemEventArgs e ) : void
_fileWatcher_Created ( object sender, FileSystemEventArgs e ) : void
_fileWatcher_Deleted ( object sender, FileSystemEventArgs e ) : void
_fileWatcher_Renamed ( object sender, RenamedEventArgs e ) : void
getInstance ( ) : FileManager

Method Details

CopyFolder() public static method

public static CopyFolder ( string sourceDirName, string destDirName, bool copySubDirs ) : void
sourceDirName string
destDirName string
copySubDirs bool
return void

DeleteDirectory() public static method

public static DeleteDirectory ( string path, bool recursive ) : bool
path string
recursive bool
return bool

DeleteDirectory() public static method

public static DeleteDirectory ( string path ) : void
path string
return void

DeleteFile() public static method

public static DeleteFile ( string fullFileName ) : void
fullFileName string
return void

FileExists() public static method

public static FileExists ( string fileName ) : bool
fileName string
return bool

GetFileNames() public static method

public static GetFileNames ( List fileList, bool recurse ) : bool
fileList List
recurse bool
return bool

GetFileNames() public static method

public static GetFileNames ( List fileList, bool recurse, String searchPattern ) : bool
fileList List
recurse bool
searchPattern String
return bool

GetFileNames() public static method

public static GetFileNames ( List fileList, string parentDirectory, bool recurse, String searchPattern, bool useShortNames = false ) : bool
fileList List
parentDirectory string
recurse bool
searchPattern String
useShortNames bool
return bool

GetFileNames() public static method

public static GetFileNames ( List fileList, string parentDirectory, bool recurse, bool useShortNames = false ) : bool
fileList List
parentDirectory string
recurse bool
useShortNames bool
return bool

GetFolderNames() public static method

public static GetFolderNames ( string startingLocation ) : List
startingLocation string
return List

OpenFile() public static method

public static OpenFile ( String &xmlContent, String &fileName, String filter ) : bool
xmlContent String
fileName String
filter String
return bool

OpenFile() public static method

public static OpenFile ( byte &byteContent, FileInfo &fileInfo ) : bool
byteContent byte
fileInfo System.IO.FileInfo
return bool

OpenFile() public static method

public static OpenFile ( byte &byteContent, FileInfo &fileInfo, String filter ) : bool
byteContent byte
fileInfo System.IO.FileInfo
filter String
return bool

OpenFolder() public static method

public static OpenFolder ( String &selectedPath ) : bool
selectedPath String
return bool

OpenXmlFile() public static method

public static OpenXmlFile ( String &xmlContent ) : bool
xmlContent String
return bool

OpenXmlFile() public static method

public static OpenXmlFile ( String &xmlContent, String &fileName ) : bool
xmlContent String
fileName String
return bool

ReadFile() public static method

public static ReadFile ( String fileName ) : byte[]
fileName String
return byte[]

ReadFile() public static method

public static ReadFile ( String fileName, FileInfo &fi ) : byte[]
fileName String
fi System.IO.FileInfo
return byte[]

RenameFile() public method

public RenameFile ( string oldName, string newName ) : void
oldName string
newName string
return void

RenameProjectFiles() public static method

public static RenameProjectFiles ( string projectPath, string oldName, string newName ) : void
projectPath string
oldName string
newName string
return void

SelectFiles() public static method

public static SelectFiles ( List files ) : bool
files List
return bool

SetFolderToMonitor() public static method

public static SetFolderToMonitor ( string folder ) : void
folder string
return void

WriteFile() public static method

public static WriteFile ( String fileName, byte fileContent ) : bool
fileName String
fileContent byte
return bool

WriteFile() public static method

public static WriteFile ( byte fileContent ) : bool
fileContent byte
return bool

WriteFile() public static method

public static WriteFile ( byte fileContent, string fileName ) : bool
fileContent byte
fileName string
return bool

WriteFile() public static method

public static WriteFile ( byte fileContent, string filter, string fileName ) : bool
fileContent byte
filter string
fileName string
return bool