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

File path questions #23

Open
jennybc opened this issue Jan 27, 2020 · 0 comments
Open

File path questions #23

jennybc opened this issue Jan 27, 2020 · 0 comments

Comments

@jennybc
Copy link
Member

jennybc commented Jan 27, 2020

Things that came up:

  • The ambiguity about "home directory" on Windows.
    • path_home() vs path_home_r() (and their path_expand*() friends)
  • What about an absolute that path that IS the same for everyone? I.e. what if we're all grabbing something from a network share?
    • This is much "safer" than "C:/path/that/ONLY/I have".
    • The main principle for finding a good approach is to centralize / abstract this as much as possible. Does the network path change every so often? It might be worth creating an internal package for the org or lab to make such paths. If the location changes, update the package and all existing scripts should work. An individual could implement something similar by storing the path to the network share in an env var or option; then build safer paths in scripts, relative to that.
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

No branches or pull requests

1 participant