/// <summary> /// Move storage file /// </summary> /// <param name="srcPath">Source file path.</param> /// <param name="destPath">Destination file path.</param> /// <param name="srcStorage">Source storage name.</param> /// <param name="destStorage">Destination storage name.</param> /// <param name="versionId">File version ID to copy; the last version by default.</param> /// <returns>AsposeResponse | Operation status.</returns> public AsposeResponse MoveFile(string srcPath, string destPath, string srcStorage = null, string destStorage = null, string versionId = null) { return(StorageFileApiImpl.MoveFile(srcPath, destPath, srcStorage, destStorage, versionId)); }
/// <summary> /// Delete file from storage. /// </summary> /// <param name="path">File path, e.g. /folder/file.ext </param> /// <param name="storage">Storage name.</param> /// <param name="versionId">File version ID to delete; the last version by default.</param> /// <returns>AsposeResponse | Operation status.</returns> public AsposeResponse DeleteFile(string path, string storage = null, string versionId = null) { return(StorageFileApiImpl.DeleteFile(path, storage, versionId)); }
/// <summary> /// Upload stream to a storage file. /// </summary> /// <param name="stream">File stream to upload.</param> /// <param name="path">Storage path </param> /// <param name="storage">Storage name.</param> /// <returns>AsposeResponse | Operation status.</returns> public AsposeResponse UploadFile(Stream stream, string path, string storage = null) { return(StorageFileApiImpl.UploadFile(stream, path, storage)); }
/// <summary> /// Overridden. Upload file from the local file system to storage. /// </summary> /// <param name="localPath">Local file system path.</param> /// <param name="path">Path to upload, e.g. /folder/file.ext </param> /// <param name="storage">Storage name.</param> /// <returns>AsposeResponse | Operation status.</returns> public AsposeResponse UploadFile(string localPath, string path, string storage = null) { return(StorageFileApiImpl.UploadFile(localPath, path, storage)); }
/// <summary> /// Download file from storage. /// </summary> /// <param name="path">File path, e.g. /folder/filename.ext </param> /// <param name="storage">Storage name.</param> /// <param name="versionId">File version ID to download; the last version by default.</param> /// <returns>StreamResponse | File stream.</returns> public StreamResponse DownloadFile(string path, string storage = null, string versionId = null) { return(StorageFileApiImpl.DownloadFile(path, storage, versionId)); }