The /datapack create
command can be used to create directories with illegal names. On Windows, this allows for the creation of directories named con
, prn
, aux
, com1
through com9
, and lpt1
through lpt9
, but strangely, not nul
.
How to reproduce:
The following command can only be used to reproduce this issue on Windows, since the specified directory name is allowed on other operating systems.
Execute the following command:
/datapack create con "Test"
→ ❌ The command succeeds, and a directory called
con
is created in the world’s data pack folder.
Expected result:
The /datapack create
command would not be able to create illegally named directories.
Observed result:
The /datapack create
command can create illegally named directories.
Comments 0
No comments.