Skip to content
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

drop_exists() is case-sensitive #176

Open
dholstius opened this issue Jan 6, 2020 · 1 comment · May be fixed by #177
Open

drop_exists() is case-sensitive #176

dholstius opened this issue Jan 6, 2020 · 1 comment · May be fixed by #177

Comments

@dholstius
Copy link

drop_exists() is case-sensitive. This means that it will incorrectly return FALSE in the following scenario:

  1. Alice creates (in her Dropbox) a file named /Foo/bar/baz.txt.
  2. Alice shares /Foo/ with Bob.
  3. Bob renames (on his filesystem) the subfolder bar/ to Bar/.
  4. Bob invokes drop_exists("/Foo/Bar/baz.txt"), expecting the result to be TRUE.

Following up with a pull request.

@dholstius dholstius linked a pull request Jan 6, 2020 that will close this issue
@J-Moravec
Copy link

Wouldn't case insensitive mean that the following scenario will be incorrect?

On a case-sensitive system (i.e., Linux):

  1. Alice creates in her Dropbox) a file named /Foo/bar/baz.txt
  2. Bob checks if /Foo/bar/BAZ.txt exists. After your fix, the return will be TRUE.
  3. Bob tries to read /Foo/Bar/BAZ.txt using R (such as with readLines().
  4. Operation fails, Bob is bamboozled.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants