Beispiel #1
0
 /// <summary>
 /// Deletes a file in a custom folder.
 /// </summary>
 public static void Custom(this HUMIO.Data.Delete deleteData, string filePath)
 {
     if (SFile.Exists(filePath))
     {
         SFile.Delete(filePath);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Deletes a file in the persistant data path.
        /// </summary>
        public static void Persistant(this HUMIO.Data.Delete deleteData, string fileName)
        {
            var path = HUMIO.PersistantPath(fileName);

            if (SFile.Exists(path))
            {
                SFile.Delete(path);
            }
        }