On Tue, Sep 22, 2020 at 10:56:43AM -0700, helhadad wrote:
> Hi Folks,
> I am trying to create file and write to it on a *network mapped drive*,
I would in particular highlight one weirdness discovered in [1]:
when the OP did use forward slashes in their call to os.OpenFile,
the error message read
&os.PathError{Op:"write", Path:"H://00_SC//Dest01.txt", Err:0x57}
that is, every forward slash in the input has been doubled.
Another issue I can't fully grasp is why creating of the file goes well,
and the error is only returned on the first call to Write on the returned
file handle? Some folks suggested special dances are required in order to
properly open a file on such a network share but this does not explain why
plain commands like `copy` work in a cmd.exe session with that same resource
attached by the `net use` command.
(Kindly looking for soliciting any insight from Alex Brainman.)
Is there a way to trace what happens on the system call level?
1.
https://stackoverflow.com/questions/63960049#comment113160125_63960049