Closed Gelembjuk closed 1 week ago
In this case you want to use xb
as x
represents create file but fail if it already exists. We use the same mode flags as the builtin open call where x
is
open for exclusive creation, failing if the file already exists
You can see how the various modes map in the code with x
being CreateDisposition.FILE_CREATE
.
Closing per the above.
I have the code to upload files to SMB.
It looks like:
i would like to make it to fail when a file exists. I can check if the file exists with the another call. But i would like to make this like atomic operation (to solve concurency problem)
I have the code from old project using the other lib for SMB
Is it possible to do same with the smbprotocol?
Another question. Not related to this but i do not want to create new ticket.
How to change a file modification time on SMB? Is it possible with this library? maybe some equivalent of touch command?