How does FileLock work?

前端 未结 5 2034
-上瘾入骨i
-上瘾入骨i 2020-11-30 11:14

I\'ve been trying to use FileLock to get exclusive access to a file in order to:

  • delete it
  • rename it
  • write to it

5条回答
  •  遥遥无期
    2020-11-30 11:51

    You should release the file with method release() before doing any action like rename or delete or ....

提交回复
热议问题