pathlib 1.1.0 copy "pathlib: ^1.1.0" to clipboard
pathlib: ^1.1.0 copied to clipboard

outdated

Super easy object-oriented path operations

example/pathlib_example.dart

import 'package:pathlib/pathlib.dart';

main() {

  // Easily create paths
  Path("/etc/passwd");
  Path.cwd(); // current directory
  Path.root(); // root directory

  // Easily work with paths
  Path("/etc") + Path("passwd");

  // Easily convert relative to absolute paths
  Path("lib/src/").abs;

  // Easily iterate paths
  for (var i in Path("/etc").list()) {
    print(i);
  }
}
0
likes
30
points
5
downloads

Publisher

unverified uploader

Weekly Downloads

Super easy object-oriented path operations

Repository (GitHub)
View/report issues

License

BSD-2-Clause (license)

Dependencies

path

More

Packages that depend on pathlib