示例#1
0
 public static bool DeleteDirectory(string directoryPath)
 {
     return(LocalDataStorage.DeleteDirectory(directoryPath));
 }
示例#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));
        }
示例#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));
        }
示例#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));
        }