Exemple #1
0
        /// <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>
        public ObjectStorageFileInfo MoveFromLocal(string path)
        {
            ObjectStorageFileInfo ret = CopyFromLocal(path, false);

            File.Delete(path);
            return(ret);
        }
Exemple #2
0
 private bool SameClient(ObjectStorageFileInfo otherFile)
 {
     return(client.Equals(otherFile.Client));
 }