OCISDK/OCISDK/ObjectStorage/IO/ObjectStorageFileInfo.cs
/// <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>
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.
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 .
public ObjectStorageFileInfo MoveFromLocal(string path)
        {
            ObjectStorageFileInfo ret = CopyFromLocal(path, false);
            File.Delete(path);
            return ret;
        }
public ObjectStorageFileInfo MoveFromLocal ( string path ) { ObjectStorageFileInfo ret = CopyFromLocal ( path , false ) ; File . Delete ( path ) ; return ret ; }
Moves the file from the local file system to ObjectStorage in this directory.
Moves the file from the local file system to ObjectStorage in this directory .
S3FileInfo where the file is moved to.
S3FileInfo where the file is moved to .
If the file already exists locally.
If the file already exists locally .
None
None
path
string
The local file system path where the files are to be moved.
The local file system path where the files are to be moved .