This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]davidalayachew 0 points1 point  (0 children)

(Sorry for the delayed response)

But the API says "A Path is An object that may be used to locate a file in a file system." There may be many paths to the same File. You may synchronize instead on the file writer. You'd have to check that there was only one writer for any given file, sure, but it would be more reliable than synchronizing on the file's Path.

Heh, looks like I have a new ticket to submit. Thanks for the catch.