Added an exception when attempting to write to a shared file

This commit is contained in:
James King 2017-07-07 15:42:54 +01:00
parent ea4c6d72b5
commit d129f3757a

View File

@ -109,6 +109,8 @@ internal RemoteFile( RemoteStorage r, string name, ulong ownerId, int sizeInByte
/// </summary>
public RemoteFileWriteStream OpenWrite()
{
if (_isUgc) throw new InvalidOperationException("Cannot write to a shared file.");
return new RemoteFileWriteStream( remoteStorage, this );
}