You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 6, 2019. It is now read-only.
FileWatcher only checks when the last DirectoryChangeEvent occurred, and if it did in last 3 sec, skips other processes as the following snippet shows:
// check if there are local file operations in progress
if (App.getInstance().getFileWatcher().isInProgress()) {
System.out.println("Skip checking for changes - local file operations in progress...");
return;
}
For the moment I want to reduce the risk where the check state task runs on partially copied files. I wanted to have a safe and stable, yet not completely optimal, implementation as the base. We will optimize it later. For the moment, I believe it is enough for the initial community release.
FileWatcher only checks when the last DirectoryChangeEvent occurred, and if it did in last 3 sec, skips other processes as the following snippet shows:
goobox-sync-storj/src/main/java/io/goobox/sync/storj/FileWatcher.java
Lines 53 to 57 in a52e4d6
In this implementation, I think, if a user copies many files at the same time, FileWatcher is going to wait until all file copies are finished.
The text was updated successfully, but these errors were encountered: