/// <summary> /// Moves the file from the local file system to ObjectStorage in this directory. /// If the file already exists in ObjectStorage than an ArgumentException is thrown. /// </summary> /// <param name="path">The local file system path where the files are to be moved.</param> /// <exception cref="T:System.IO.IOException">If the file already exists locally.</exception> /// <exception cref="T:System.ArgumentException"></exception> /// <exception cref="T:System.Net.WebException"></exception> /// <returns>S3FileInfo where the file is moved to.</returns> public ObjectStorageFileInfo MoveFromLocal(string path) { ObjectStorageFileInfo ret = CopyFromLocal(path, false); File.Delete(path); return(ret); }
private bool SameClient(ObjectStorageFileInfo otherFile) { return(client.Equals(otherFile.Client)); }