-
Notifications
You must be signed in to change notification settings - Fork 251
Add method to retrieve the significant directory count #374
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
Conversation
See ticket #10296.
|
/cc @mtbc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Split directly on File.separatorChar?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The above is incorrect (should be "\\\\" instead of "\\"), but splitting on File.separator directly is not quite right because of:
Fixing the backslash escaping in just a second.
|
Other than the minor comments above, it looks fine. I'm unsure how best to test this though--do we need a server-side usage of this first so we can test it with FS? |
|
Hopefully today I could use it in my code and make a PR that uses it testably in the server and includes the commits from this PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can I think of this as a static method -- does reader state matter at all?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A pre-setId method, so nearly static.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It can be called before or after setId; the current reader state makes no difference.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to start the comment with two asterisks so that Javadoc can pick it up?
(oh, no, sorry, just as a normal comment Javadoc will pick up the doc from the interface, I think, I was just wrongfooted by the Javadoc-style "see")
|
Looks good so far but I'll actually test it a bit today and comment here again later. |
|
So, if I take the MIAS data from squig's |
|
Whoops, I now notice that @melissalinkert is marked as being away in the scheduling calendar. As far as I'm concerned, this PR is good to merge: if need be, the behavior can be tweaked at a later date. It would be bad if it retained too few directories, but in testing I've seen no problems of that kind and the code looks good. |
|
I don't think that's right - likely because Up to you guys whether or not to merge, but either way that'll need to be fixed. So, if I take the MIAS data from squig's Reply to this email directly or view it on GitHub: |
|
Too small a return value would be a blocker, but returning 3 instead of 1, affecting MIAS only, makes me vote for merging so we get this function in and format-specific improvements can follow later. |
|
One way to test this is to also apply ome/openmicroscopy#751 and view the paths created server-side under |
|
I was mistaken; the return value of |
|
Still good to merge for me. |
|
Thanks, guys. Merging and bumping the submodule pointer. |
Add method to retrieve the significant directory count
URL of Virtual Appliance changed to release downloads page, instead of Daily Builds.
See ticket #10296.