Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Add API locking file access #238
In a multiprocess environment, it is best that code which is modifying a file will lock the file from modification by other processes to prevent corruption of the resulting file. It is very rare for two processes to try to write to the same file at the "same time", but if it happens it is hard to debug and recover.
The first motivation for the feature is saving .htaccess modifications in #236 but features like saving
Right now for
The main idea for the implementation is to currently provide two ways to access and modify locked files, one with the use of PHP file system APIs and the other via FTP. Locking itself should not depend on which method is used, and a file that got locked with one method will be locked when using the other as well.