Lines Matching +full:working +full:- +full:directory
3 <!--introduced_in=v0.10.0-->
5 > Stability: 2 - Stable
7 <!-- source_link=lib/path.js -->
9 The `path` module provides utilities for working with file and directory paths.
20 Windows operating system, the `path` module will assume that Windows-style
39 To achieve consistent results when working with Windows file paths on any
49 To achieve consistent results when working with POSIX file paths on any
59 On Windows Node.js follows the concept of per-drive working directory.
63 [this MSDN page][MSDN-Rel-Path].
66 <!-- YAML
69 - version: v6.0.0
70 pr-url: https://github.com/nodejs/node/pull/5348
71 description: Passing a non-string as the `path` argument will throw now.
72 -->
79 the Unix `basename` command. Trailing directory separators are ignored, see
91 case-insensitive manner, this function does not. For example, `C:\\foo.html` and
93 case-sensitive string:
107 <!-- YAML
109 -->
113 Provides the platform-specific path delimiter:
139 <!-- YAML
142 - version: v6.0.0
143 pr-url: https://github.com/nodejs/node/pull/5348
144 description: Passing a non-string as the `path` argument will throw now.
145 -->
150 The `path.dirname()` method returns the directory name of a `path`, similar to
151 the Unix `dirname` command. Trailing directory separators are ignored, see
162 <!-- YAML
165 - version: v6.0.0
166 pr-url: https://github.com/nodejs/node/pull/5348
167 description: Passing a non-string as the `path` argument will throw now.
168 -->
202 <!-- YAML
204 -->
266 <!-- YAML
268 -->
275 If the given `path` is a zero-length string, `false` will be returned.
301 <!-- YAML
303 -->
309 platform-specific separator as a delimiter, then normalizes the resulting path.
311 Zero-length `path` segments are ignored. If the joined path string is a
312 zero-length string then `'.'` will be returned, representing the current
313 working directory.
326 <!-- YAML
328 -->
338 instance of the platform-specific path segment separator (`/` on POSIX and
341 If the `path` is a zero-length string, `'.'` is returned, representing the
342 current working directory.
369 <!-- YAML
371 -->
377 significant elements of the `path`. Trailing directory separators are ignored,
435 <!-- YAML
437 -->
445 <!-- YAML
448 - version: v6.8.0
449 pr-url: https://github.com/nodejs/node/pull/8523
452 -->
459 on the current working directory. If `from` and `to` each resolve to the same
460 path (after calling `path.resolve()` on each), a zero-length string is returned.
462 If a zero-length string is passed as `from` or `to`, the current working
463 directory will be used instead of the zero-length strings.
482 <!-- YAML
484 -->
499 been generated, the current working directory is used.
502 path is resolved to the root directory.
504 Zero-length `path` segments are ignored.
507 of the current working directory.
517 // If the current working directory is /home/myself/node,
524 <!-- YAML
526 -->
530 Provides the platform-specific path segment separator:
554 <!-- YAML
556 -->
561 On Windows systems only, returns an equivalent [namespace-prefixed path][] for
566 method is non-operational and always returns `path` without modifications.
569 <!-- YAML
571 -->
575 The `path.win32` property provides access to Windows-specific implementations
578 [MSDN-Rel-Path]: https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#fully-qualif…
584 [namespace-prefixed path]: https://docs.microsoft.com/en-us/windows/desktop/FileIO/naming-a-file#na…