Exemple #1
0
 /// <summary>
 /// Copies a file from a custom folder, into another custom folder.
 /// </summary>
 public static void Custom(this HUMIO.Data.Copy copyData, string filePath, string newFilePath)
 {
     if (SFile.Exists(filePath))
     {
         SFile.Copy(filePath, newFilePath);
     }
 }
Exemple #2
0
        /// <summary>
        /// Copies a file from the persistant data path, into the persistant data path, with a new file name;
        /// </summary>
        public static void Persistant(this HUMIO.Data.Copy copyData, string fileName, string newFileName)
        {
            var path    = HUMIO.PersistantPath(fileName);
            var newPath = HUMIO.PersistantPath(newFileName);

            if (SFile.Exists(path))
            {
                SFile.Copy(path, newPath);
            }
        }