Example #1
0
        /// <summary>
        /// Removes a screenshot from the server.
        /// </summary>
        /// <param name="path">The path to the file on the server to remove.</param>
        /// <returns>True if the file was deleted, false otherwise.</returns>
        /// <exception cref="Superscrot.ConnectionFailedException">
        /// Connectioned to the server failed.
        /// </exception>
        public override bool Delete(string path)
        {
            EnsureConnection();

            return(client.DeleteFile(path));
        }