Uh oh!
There was an error while loading. Please reload this page.
Update NIO to understand new directory stand-ins - #5204
Conversation
The web interface has a "create folder" button, and that creates a file ending in '/' that is used to pretend the folder exists. The web interface maintains the illusion but of course this is still only a file, so all clients (this one included) has to play along and pretend the directory exists (or users get confused). Those fake folders used to be 0-byte, but no longer. This pull request updates our code so it just looks at the trailing slash, ignoring the size of the file. It also adds a test, and in order to write the test we had to add the ability to create files whose name ends in '/', for test purpose only.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #5204 +/- ##
============================================
+ Coverage 50.42% 50.42% +<.01% - Complexity 23796 23816 +20
============================================
Files 2251 2252 +1 Lines 226836 226841 +5 Branches 24966 24961 -5 ============================================
+ Hits 114371 114380 +9 + Misses 103858 103855 -3 + Partials 8607 8606 -1
Continue to review full report at Codecov.
|
sduskis
commented
May 22, 2019
Please run |
jean-philippe-martin
commented
May 22, 2019
@sduskis done. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
jean-philippe-martin
commented
May 28, 2019
I hope everyone had a good weekend! @chingor13 the code should be ready, let me know in case there's still a ball in my camp! |
jean-philippe-martin
commented
May 28, 2019
Thank you very much! |
* Update NIO to understand directory stand-ins The web interface has a "create folder" button, and that creates a file ending in '/' that is used to pretend the folder exists. The web interface maintains the illusion but of course this is still only a file, so all clients (this one included) has to play along and pretend the directory exists (or users get confused). Those fake folders used to be 0-byte, but no longer. This pull request updates our code so it just looks at the trailing slash, ignoring the size of the file. It also adds a test, and in order to write the test we had to add the ability to create files whose name ends in '/', for test purpose only. * formatting changes * formatting * Update (C) year
* Update NIO to understand directory stand-ins The web interface has a "create folder" button, and that creates a file ending in '/' that is used to pretend the folder exists. The web interface maintains the illusion but of course this is still only a file, so all clients (this one included) has to play along and pretend the directory exists (or users get confused). Those fake folders used to be 0-byte, but no longer. This pull request updates our code so it just looks at the trailing slash, ignoring the size of the file. It also adds a test, and in order to write the test we had to add the ability to create files whose name ends in '/', for test purpose only. * formatting changes * formatting * Update (C) year
The web interface has a "create folder" button, and that creates
a file ending in '/' that is used to pretend the folder exists.
The web interface maintains the illusion but of course this is still only a file,
so all clients (this one included) has to play along and pretend the directory
exists (or users get confused).
Those fake folders used to be 0-byte, but no longer. This pull request
updates our code so it just looks at the trailing slash, ignoring the size
of the file.
It also adds a test, and in order to write the test we had to add the ability
to create files whose name ends in '/', for test purpose only.
Fixes#5203