![]() ![]() The SMB client opens the file with FileAccess.Write and FileShare.Read (denies subsequent Write/Delete while open).The SMB client still has the file open, and denies Read/Delete access. Result: The REST client's request fails with status code 409 (Conflict), and error code SharingViolation.The REST client then performs a Get File operation on the file (thereby using FileAccess.Read as specified in the preceding table).The SMB client opens the file with FileAccess.Read and FileShare.Write (denies subsequent Read/Delete while open). ![]() The following are examples of FileREST requests interacting with the SMB share modes: These operations don't require read access to the file (that is, these operations succeed even if an SMB client has the file open for exclusive read access). List Directories and Files, Get File Properties, and Get File Metadata don't operate on file content. Write, Delete, and Shared Read for the duration of the lease. Use the following file access mode to determine whether the operation can be completed: FileREST operation When you perform a FileREST operation, this operation must respect the share mode specified for any file open on an SMB client. The client specified a share mode that denies write access to a file that is still open for write access.
0 Comments
Leave a Reply. |