path 1.9.1 copy "path: ^1.9.1" to clipboard
path: ^1.9.1 copied to clipboard

A string-based path manipulation library. All of the path operations you know and love, with solid support for Windows, POSIX (Linux and Mac OS X), and the web.

example/example.dart

// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:path/path.dart' as p;

void main() {
  print('Current path style: ${p.style}');

  print('Current process path: ${p.current}');

  print('Separators');
  for (var entry in [p.posix, p.windows, p.url]) {
    print('  ${entry.style.toString().padRight(7)}: ${entry.separator}');
  }
}
copied to clipboard
1.6k
likes
160
points
5.95M
downloads

Publisher

verified publisherdart.dev

Weekly Downloads

2024.09.16 - 2025.03.31

A string-based path manipulation library. All of the path operations you know and love, with solid support for Windows, POSIX (Linux and Mac OS X), and the web.

Repository (GitHub)
Contributing

Topics

#file-system

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on path