public static void DoByFileEditMode(ChangeSets chSet, ChangeSets.ChangeSetC item, string cacheDirName)
        {
            switch (item.mode)
            {
            case "add":
                evalShouldCompress(item.filename, cacheDirName);
                break;

            case "delete":
                string fPath = Compressor.getFilePathAndCompressionAppended($"{Path.Combine(cacheDirName, item.filename)}");
                File.Delete(fPath);
                break;
            }
        }
        public static void handleFileOrDirectory(ChangeSets.ChangeSetC chSetPtr, string cacheDirName)
        {
            ChangeSets cPtr = ChangeSets.getChangeSetsClassPtr();

            switch (chSetPtr.filetype)
            {
            case "file":
                DoByFileEditMode(cPtr, chSetPtr, cacheDirName);
                break;

            case "directory":
                DoByDirectoryEditMode(cPtr, chSetPtr, cacheDirName);     //Directory removals start from C:
                break;
            }
        }
        public static void DoByDirectoryEditMode(ChangeSets chSet, ChangeSets.ChangeSetC item, string cacheDirName)
        {
            string fPath = Path.Combine(cacheDirName, item.filename);

            switch (item.mode)
            {
            case "add-dir":
                if (!Directory.Exists(fPath))
                {
                    if (File.Exists(fPath))
                    {
                        File.Delete(fPath);     //We can't have a file and a directory with the same name
                    }
                    Directory.CreateDirectory(fPath);
                }
                break;

            case "delete":
                Directory.Delete(fPath, true);
                break;
            }
        }