-
Notifications
You must be signed in to change notification settings - Fork 10
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
POSIX file watching doesn't get notified when files are transfered using VOS #103
Comments
What is the feature request/bug here? Is the |
Brian asked me to open this. When we copy files using |
Still don't understand what is missing in |
@brianmajor - can you comment more on this? |
Yes, it is mounted to arc. I wrote a script that watches for changes to a directory in If I instead copy a file to that directory remotely using e.g. I had a use case for this functionality last weekend while observing. As data was transferred from the telescope to our projects directory, the script would have picked up the new files and triggered a live analysis of the data. This is not essential functionality and we were able to work around it, but I reported it in case |
This is not a |
Yes, I guess since it's a remote upload (rather than a local download) using |
wild guess: when you put a file, it initially gets created as root and then chown-ed to the user. Does the notify mechanism care about who owns the file when it is created? or somehow not get triggered by root? I don't think I could find an atomic "create+chown" functionality in the java nio library, but I could dig deeper or probably fake it out by creating the file in another location, chown, then atomic move to the right location in the directory. That would have some side benefits of not leaving a file in an intermediate and possibly broken state if something fails. |
Low priority bug / feature request:
I created a script using Julia's
watch_folder
function to trigger an action when a file is added to a given directory. Testing using linux commands on the science platform e.g.tough text.txt
triggers events, but transferring files usingvcp
does not. The files appear immediately usingls
but no event is generated.The text was updated successfully, but these errors were encountered: