~d6
c3023a4a71
Previously Varvara did not have a way to create new directories. This change adds that capability without adding or modifying any device ports. The changes are: (1) When a filename ends in the directory separator, writing any value to File/write will create a directory. Unlike with regular files, the value is ignored. (2) When writing any path (regular files or directories) if there are missing parent directories Varvara will attempt to create them first. This behavior is similar to mkdir -p. The directory separator is / on most platforms, and \ on Windows. On POSIX platforms the directories will be created with permission 0755 (modified by the user's umask value). This change has been tested and works in both uxnemu and uxncli. |
||
---|---|---|
.. | ||
devices | ||
uxn.c | ||
uxn.h | ||
uxnasm.c | ||
uxncli.c | ||
uxnemu.c |