KeysCoder
Member
Suppose I want to over-write one file with another but I want to backup the over-written file. Use io.file.replace, right?
Now what if I want to check to make sure there is adequate disk space first? Is it possible that another thread can write a file to the hard drive between my disk space check and my file.replace operation - invalidating my disk space check?
Is there any way to avoid this issue?
Now what if I want to check to make sure there is adequate disk space first? Is it possible that another thread can write a file to the hard drive between my disk space check and my file.replace operation - invalidating my disk space check?
Is there any way to avoid this issue?