uxn/src
~d6 c3023a4a71 Support creating directories
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.
2024-09-16 20:04:13 -04:00
..
devices Support creating directories 2024-09-16 20:04:13 -04:00
uxn.c fix all the warnings 2024-08-29 17:21:18 +02:00
uxn.h Updated devices 2024-07-15 12:12:10 -07:00
uxnasm.c fix a clang warning 2024-08-29 19:43:00 +02:00
uxncli.c Silenced a few warnings 2024-08-25 09:26:18 -07:00
uxnemu.c Silenced a few warnings 2024-08-25 09:26:18 -07:00