Otter SDK Reference
Version:

SimulatedFileOperationsExecuter Class

Wraps a IFileOperationsExecuter to enforce simulation mode.

Inheritance Hierarchy

  • object
    • Inedo.Agents.SimulatedFileOperationsExecuter

Syntax

public class SimulatedFileOperationsExecuter : IFileOperationsExecuter, Inedo.Diagnostics.ILogger

Constructors

Name Description
SimulatedFileOperationsExecuter(IFileOperationsExecuter fileOps)

Initializes a new instance of the SimulatedFileOperationsExecuter class.

Events

Name Description
MessageLogged

Properties

Name Description
DirectorySeparator
NewLine

Methods

Name Description
ClearDirectory(string path)
ClearDirectoryAsync(string path)
CombinePath(string path1, string path2)
CopyFile(string sourcePath, string targetPath, bool overwrite)
CopyFileAsync(string sourcePath, string targetPath, bool overwrite)
CreateDirectory(string path)
CreateDirectoryAsync(string path)
CreateZipFile(string sourcePath, string targetFileName)
CreateZipFileAsync(string sourcePath, string targetFileName)
DeleteDirectories(string[] directoryNames)
DeleteDirectoriesAsync(string[] directoryNames)
DeleteFiles(string[] fileNames)
DeleteFilesAsync(string[] fileNames)
DirectoryExists(string path)
DirectoryExistsAsync(string path)
ExtractZipFile(string sourceFileName, string targetPath, bool overwrite)
ExtractZipFileAsync(string sourceFileName, string targetPath, bool overwrite)
FileCopyBatch(string sourceDirName, string[] sourceFileNames, string destDirName, string[] destFileNames, bool overwrite, bool createDirectory)
FileCopyBatchAsync(string sourceDirName, string[] sourceFileNames, string destDirName, string[] destFileNames, bool overwrite, bool createDirectory)
FileExists(string path)
FileExistsAsync(string path)
GetAttributes(string path)
GetAttributesAsync(string path)
GetBaseWorkingDirectory
GetBaseWorkingDirectoryAsync
GetDirectoryInfo(string path)
GetDirectoryInfoAsync(string path)
GetFileInfo(string path)
GetFileInfoAsync(string path)
GetFileSystemInfos(string path, Inedo.IO.MaskingContext mask)
GetFileSystemInfosAsync(string path, Inedo.IO.MaskingContext mask)
Log(Inedo.Diagnostics.MessageLevel logLevel, string message)
MoveDirectory(string sourceDirName, string destDirName)
MoveDirectoryAsync(string sourceDirName, string destDirName)
MoveFile(string sourceFileName, string targetFileName, bool overwrite)
MoveFileAsync(string sourceFileName, string targetFileName, bool overwrite)
OpenFile(string path, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess)
OpenFileAsync(string path, System.IO.FileMode fileMode, System.IO.FileAccess fileAccess)
SetAttributes(string path, System.IO.FileAttributes fileAttributes)
SetAttributesAsync(string path, System.IO.FileAttributes fileAttributes)
SetLastWriteTime(string path, System.DateTime lastModified)
SetLastWriteTimeAsync(string path, System.DateTime lastModified)