Esempio n. 1
0
 public static bool DeleteDirectory(string directoryPath)
 {
     return(LocalDataStorage.DeleteDirectory(directoryPath));
 }
Esempio n. 2
0
        /// <summary>Deletes all modfiles and binaries from the cache.</summary>
        public static bool DeleteAllModfileAndBinaryData(int modId)
        {
            string path = CacheClient.GenerateModBinariesDirectoryPath(modId);

            return(LocalDataStorage.DeleteDirectory(path));
        }
Esempio n. 3
0
        /// <summary>Delete's a user's avatars from the cache.</summary>
        public static bool DeleteUserAvatar(int userId)
        {
            string path = CacheClient.GenerateUserAvatarDirectoryPath(userId);

            return(LocalDataStorage.DeleteDirectory(path));
        }
Esempio n. 4
0
        /// <summary>Deletes all of a mod's data from the cache.</summary>
        public static bool DeleteMod(int modId)
        {
            string modDir = CacheClient.GenerateModDirectoryPath(modId);

            return(LocalDataStorage.DeleteDirectory(modDir));
        }