Bundlex v0.2.1 Bundlex.Helper.PathHelper View Source
Module containing helper functions that ease traversing directories.
Link to this section Summary
Functions
Fixes slashes in the given path to match convention used on current operating system
Tries to find a path that matches given pattern that has the biggest version number if it is expected to be a suffix
Link to this section Functions
Link to this function
fix_slashes(path) View Source
Fixes slashes in the given path to match convention used on current operating system.
Internally all elixir functions use slash as a path separator, even if running on windows, and it's not a bug but a feature (lol).
See https://github.com/elixir-lang/elixir/issues/1236
Link to this function
latest_wildcard(pattern) View Source
Tries to find a path that matches given pattern that has the biggest version number if it is expected to be a suffix.