-
Notifications
You must be signed in to change notification settings - Fork 3
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
Harvest skips path that is the root of a soft link #102
Comments
@rchenatjpl in the future, the bug template would have been better here. Not a huge deal, just a heads up. |
@ramesh-maddegoda @jordanpadams Should we re-assign this ticket to @nutjob4life or @al-niessner ? |
@tloubrieu-jpl reassigned to @alexdunnjpl |
@rchenatjpl @jordanpadams checking my understanding here Given
a config containing the following will not pick up <directories>
<path>path/to/some/symlinkToDir</path>
</directories> but a config containing the following will pick it up <directories>
<path>path/to/some/symlinkToDir/someBundleDir</path>
</directories> and the behaviour of |
If I understand you correctly, that's right. I think harvest should run through all subdirs of directories/path . |
@tloubrieu-jpl @jordanpadams is this (following symlinks) something we want to support? Seems like there's an unavoidable trade-off between
@rchenatjpl is there a generalized use-case which is persuasive enough to require implementation of symlink support, or is this a once-off or something that can be worked around by providing the actual filesystem path to the link-target directory? |
I'd like harvest to follow the symlink, but if not, it is definitely work-aroundable for my needs. |
@alexdunnjpl I think we have to risk infinite loops. symlinks are ubiquitous in the PDS |
@jordanpadams roger that - I'll get on it today. |
@jordanpadams is the intended behaviour that only symlinked roots will be followed, or that symlinks at any depth within the tree rooted at the target dir will be followed? |
I have no idea why I am on this thread, but use absolute or canonical path function to convert given path with symlink in it then see if you know it (use a Set() for what you know already). If not seen, then process it. Otherwise off to next file. Infinite loop no more. |
@al-niessner I think you are just following this repo :-) . @alexdunnjpl follow all symlinks |
You may have deliberately chosen not to do this. I don't know.
If the config file's directories/path is either (on pdscloud-prod1) of
/data/pds4/context-pds4
/data/pds4/context-pds4/
harvest skips the directory. However, if directories/path is a subdir, harvest works
/data/pds4/context-pds4/agency
The resolved link also works:
/data/pds4/1700/PDS4_context_bundle_20180723
From the pds4 account on pdscloud-prod1:
issue1.zip
The text was updated successfully, but these errors were encountered: