-
Notifications
You must be signed in to change notification settings - Fork 377
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directory completed copying event #14
Comments
@berwin22 I too add a second watch |
Hi guys, @wayoutmind are you thinking of this in the context of a moved directory? it's usually probably easier for a move than for a copy. Anyway I've never thought of this use case (using inotify as signal for copy completion), and I'm not sure inotify would be the right way of handling it. In first thought maybe inotify could be part of it but at least it seems to me it does not alleviate from the task of checking files integrity when it is assumed the copy ended. Maybe inotify could be used as a hint of when to check that files are rightly copied and then check that it's the case. |
Sorry @seb-m, yes I was thinking about this in the context of a moved directory. |
I have the same issue. Currently just adding a second watch as @wayoutmind described. |
Won't implement this feature. |
I know this probably isn't part of the normal inotify functionality, but I had to implement a means of telling when a directory had finished copying.
http://code.google.com/p/archivematica/issues/detail?id=482
I created a second recursive watch directory, on the directory getting copied(being populated) to check for updates in the created directory, and timer class to act when modifications had stopped occurring.
http://code.google.com/p/archivematica/source/diff?spec=svn1364&r=1364&format=side&path=/trunk/src/MCPServer/lib/archivematicaMCP.py
I was curious if anyone else had faced this, and what solutions they came up with.
The text was updated successfully, but these errors were encountered: