file_ext 0.7.4 copy "file_ext: ^0.7.4" to clipboard
file_ext: ^0.7.4 copied to clipboard

Helper methods for filesystem-, path- and stdin-related manipulations.

Extension methods for filesystem and stdin-related manipulations

Features #

Asynchronous and synchronous extension methods to:

  • loop through filesystem entities (filtered by multiple Glob patterns in multiple directories) and a call user-defined function
  • loop through all memory-based filesystems of all styles and call a user-defined function (useful for unit tests)
  • loop through lines from stdin and call a user-defined function or read the whole stdin
  • file path API extension:
    • adjust() - convert all path separators to OS-specific style
    • toPosix() - convert all path separators to POSIX style
    • getFullPath() - similar to canonicalize(), but preserves letter case
    • isHidden() - check whether a given filename starts with the dot or path contains a sub-directory starting with the dot (but not limited to the dots)
    • isPath() - check whether a given string contains directory component or not

Usage #

See under the Example tab. All sample code files are under the sub-directory example.

0
likes
140
pub points
0%
popularity

Publisher

verified publisheraiurovet.com

Helper methods for filesystem-, path- and stdin-related manipulations.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

async, file, glob, loop_visitor, path

More

Packages that depend on file_ext