Example #1
0
        // --- 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);
            }
        }
Example #2
0
        // --- 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);
            }
        }