path
path copied to clipboard
A string-based path manipulation library.
Although *most* paths on Windows are case-insensitive, it's possible to set certain directories as case-sensitive. This means that `canonicalize()` as currently implemented—converting all Windows paths to lower case—can cause a...
**Issue by [nex3](https://github.com/nex3)** _Originally opened as dart-lang/sdk#19145_ --- These functions (like the rest of path's URL support) only make sense with URLs, not URIs, and calling that out in the...
The documentation doesn't provide clear guidance on how you stipulate a root path in a cross platform manner. Whist \tmp isn't an absolute path on windows it does describe a...
As per comment by @jamesderlin at [https://github.com/google/file.dart/issues/198#issuecomment-1518274694](https://github.com/google/file.dart/issues/198#issuecomment-1518274694) on the issue related to the _file_ package, >The expectation is that _context.isAbsolute(path) logically implies that path includes style.drive as a prefix, which...
``` import 'package:path/path.dart'; void main(List args) { print(isWithin('/dir/.', '/dir/.file')); print(isWithin('/dir/.', '/dir/file')); } ``` Prints ``` > dart a.dart false true ```
See https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file?redirectedfrom=MSDN#win32-file-namespaces: > For file I/O, the "\\\\?\\" prefix to a path string tells the Windows APIs to disable all string parsing and to send the string that follows it...
I'm running into issues running `flutter test`- sometimes it's successful and other times it's not. I'm wondering if anyone has any ideas as to whether this is an issue on...
On Windows, the following code: ```dart final String homeDrive = platform.environment['HOMEDRIVE']; final String homePath = platform.environment['HOMEPATH']; print(homeDrive); print(homePath); print(fs.path.join(homeDrive, homePath)); ``` Outputs the following: ```text C: \Users\danny \Users\danny ``` The...
The `Style` class has a number of deprecated public APIs that are a vestige of an ill-fated attempt to allow user-defined path styles. These should be deleted when we decided...
According to [the WHATWG URL spec](https://url.spec.whatwg.org/#shorten-a-urls-path), `..` shouldn't traverse past a drive letter if it's the only component in a `file` URL's path.