-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add support for same-name file-and-directory #4267
Add support for same-name file-and-directory #4267
Conversation
Update for the corner case of a file with a name that ends with '/', and a folder with the same name. We now return true for both isRegularFile and isDirectory in that case if pseudodirs are enabled (as they are by default). If pseudodir is disabled then it just shows up as a file.
I see one of the errors is:
I tried running that but got: "[ERROR] No plugin found for prefix 'fmt' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/usr/local/google/home/jpmartin/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]" I already installed the files you recommend for intelliJ formatting but they don't work for me. I asked for help but never got it. I can fix the files by hand, but I'm going to need to know what I should change. |
Sorry, the plugin we're using reports the wrong command to run. It should be This is fixed in the plugin's master branch, but not released yet. |
Thank you very much, @chingor13! That worked! |
It looks like not all the tests reran? What do I need to do to have them run again? |
No point in continuing with this branch since the competing fix at #3918 was merged. I still think we should return a file-and-dir object but it won't be this commit as is. |
Update for the corner case of a file with a name that ends with '/', and a folder with the same name. As discussed in the issue, this can happen if a user presses "create folder" in the GCS web UI.
We now return true for both isRegularFile and isDirectory in that case if pseudodirs are enabled (as they are by default). If pseudodir is disabled then it just shows up as a file.
Fixes #3918