Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Check accessibility before opening directory #20

Merged
merged 29 commits into from
Jun 10, 2018

Conversation

matthew-matvei
Copy link
Owner

@matthew-matvei matthew-matvei commented Apr 15, 2018

Description

  • DirectoryManager checks for file / folder accessibility when listing the directory contents

  • Accessibility is now reflected in the UI both in the directory list and the GoTo modal window

    • Inaccessible directories are not attempted to be opened
  • I have followed the Contributing Guidlines

  • There are no open pull requests for the same update

  • My pull request targets the develop branch of the FreeMAN repository

  • I have incremented the patch segment of the version number

Related Issue

This pull request closes #11

Testing

  • Manual testing on Linux, comparing against pantheon-files's interpretation of file / folder accessibility

  • Manual testing to be conducted on a Windows machine before completing this PR

  • Added tests

  • Ran npm run lint successfully

  • Ran npm run test successfully

Documentation

  • Added / updated JSDoc documentation

@matthew-matvei
Copy link
Owner Author

Looks like access on Windows is a little inconsistent. The preemptive access checking works better on Linux, but I think there'll still need to be better error handling for Windows to handle the same / similarly.

Will re-open this PR when I'm ready to do that

@matthew-matvei matthew-matvei reopened this Jun 4, 2018
@matthew-matvei
Copy link
Owner Author

Got it working in practice, just need to make that tslint happy

@matthew-matvei matthew-matvei merged commit 3fb89c1 into develop Jun 10, 2018
@matthew-matvei matthew-matvei deleted the check-accessibility branch June 10, 2018 16:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use fs.access to determine if directory can be accessed
1 participant