Initial commit

This commit is contained in:
2025-11-17 10:28:09 +01:00
parent 7bff81691f
commit 6ee36e26be
391 changed files with 110253 additions and 0 deletions

43
source/fileSystem.h Executable file
View File

@@ -0,0 +1,43 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <array.h>
#include <dirent.h> // "DIR *"
#include <text.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#ifdef WIN32
#include <io.h>
#define F_OK 0
#define access _access
#endif
int fileSystem_textIsFilename( char * value );
char * fileSystem_readFile( char * );
void fileSystem_writeFile( char *, char * );
struct array * fileSystem_readDir( char * filePath );
int fileSystem_exists( char * path );
int fileSystem_makeDirectory( char * path );
void fileSystem_ensureDirectory( char * filePath );