// --- File Management --- /// <summary>Deletes a file.</summary> public void DeleteFile(string relativePath, DeleteFileCallback callback) { Debug.Assert(!string.IsNullOrEmpty(relativePath)); string path = IOUtilities.CombinePath(this.userDir, relativePath); bool success = this.DeleteFile(path); if (callback != null) { callback.Invoke(relativePath, success); } }
// --- File Management --- /// <summary>Deletes a file.</summary> public void DeleteFile(string relativePath, DeleteFileCallback callback) { Debug.Assert(!string.IsNullOrEmpty(relativePath)); string path = IOUtilities.CombinePath(this.userDir, relativePath); bool success = true; if (Steamworks.SteamRemoteStorage.FileExists(path)) { success = Steamworks.SteamRemoteStorage.FileDelete(path); } if (callback != null) { callback.Invoke(relativePath, success); } }