From 5774f40b650a376e9b622dba9df6c43589b0d398 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 9 Apr 2020 00:29:06 +0300 Subject: Logs, Comments & General organization on FSE/PPC. Several improvements. --- .../FileSystem/FileSystemOperation.cs | 51 ++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 Software/Visual_Studio/PPC/Tango.PPC.Common/FileSystem/FileSystemOperation.cs (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/FileSystem/FileSystemOperation.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/FileSystem/FileSystemOperation.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/FileSystem/FileSystemOperation.cs new file mode 100644 index 000000000..9fba7a874 --- /dev/null +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/FileSystem/FileSystemOperation.cs @@ -0,0 +1,51 @@ +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; + } + } +} -- cgit v1.3.1