Skip to content

Commit 8fc48bb

Browse files
committedJul 7, 2017
shrink reserved characters
1 parent dff1833 commit 8fc48bb

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed
 

‎doc/api/fs.md

+3-15
Original file line numberDiff line numberDiff line change
@@ -1587,23 +1587,11 @@ fs.open('<directory>', 'a+', (err, fd) => {
15871587
});
15881588
```
15891589

1590-
Some characters are reserved under Windows as documented by
1591-
[Naming Files, Paths, and Namespaces][]. Under NTFS, if the filename contains a
1592-
colon, Node.js will open a file system stream, as described by
1590+
Some characters (`< > : " / \ | ? *`) are reserved under Windows as documented
1591+
by [Naming Files, Paths, and Namespaces][]. Under NTFS, if the filename contains
1592+
a colon, Node.js will open a file system stream, as described by
15931593
[this MSDN page][MSDN-Using-Streams].
15941594

1595-
The reserved characters are list below.
1596-
1597-
+ `<` (less than)
1598-
+ `>` (greater than)
1599-
+ `:` (colon)
1600-
+ `"` (double quote)
1601-
+ `/` (forward slash)
1602-
+ `\` (backslash)
1603-
+ `|` (vertical bar or pipe)
1604-
+ `?` (question mark)
1605-
+ `*` (asterisk)
1606-
16071595
Functions based on `fs.open()` exhibit this behavior as well. eg.
16081596
`fs.writeFile()`, `fs.readFile()`, etc.
16091597

0 commit comments

Comments
 (0)