using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Tango.PPC.Common.FileSystem { /// /// Represents an active file system file/folder download/upload operation /// public class FileSystemOperation { /// /// Gets or sets the operation mode. /// public FileSystemOperationMode Mode { get; set; } /// /// Gets or sets the operation identifier. /// public String Id { get; set; } /// /// Gets or sets the path for the operation. /// public String Path { get; set; } /// /// Should be set to true when the is a temporary zip file when performing download of a folder. /// public bool IsPathTempZip { get; set; } /// /// Gets or sets the actual path to extract the zip file when uploading folder. /// public String UploadPostPath { get; set; } /// /// Initializes a new instance of the class. /// /// The mode. /// The path. public FileSystemOperation(FileSystemOperationMode mode, String path) { Mode = mode; Id = Guid.NewGuid().ToString(); Path = path; } } }