Python Tips & Tricks: File Locking




[ad_1]

The ode can be found here:
https://github.com/nsadawi/Python-Tips-and-Tricks

Source


[ad_2]

Comment List

  • Noureddin Sadawi
    January 18, 2021

    But what happens if the process exits unexpectedly?

    Will the file unlock or remain locked?

  • Noureddin Sadawi
    January 18, 2021

    Sir, I want to put a password lock in one of the folders, so that after a certain number of attempts the file will be destroyed. What is the process for that?

  • Noureddin Sadawi
    January 18, 2021

    Will this locked file be available for another process to open it and write in it? something like a text editor for example

  • Noureddin Sadawi
    January 18, 2021

    how can i do it on windows?

  • Noureddin Sadawi
    January 18, 2021

    Exactly what I needed. Clear and concise. Thanks

Write a comment