2023-12-28 19:28:15 +00:00
|
|
|
//-----------------------------------------------------------------------------------------------------
|
2023-12-10 23:16:28 +00:00
|
|
|
// QB64-PE filesystem related functions
|
|
|
|
//-----------------------------------------------------------------------------------------------------
|
|
|
|
|
2023-12-09 19:46:29 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
struct qbs;
|
|
|
|
|
2023-12-10 23:16:28 +00:00
|
|
|
/// @brief This is a global variable that is set on startup and holds the directory that was current when the program was loaded
|
2023-12-10 05:55:01 +00:00
|
|
|
extern qbs *g_startDir;
|
2023-12-09 19:46:29 +00:00
|
|
|
|
|
|
|
qbs *func__cwd();
|
2023-12-12 10:10:35 +00:00
|
|
|
qbs *func__dir(qbs *qbsContext);
|
2023-12-10 21:13:26 +00:00
|
|
|
int32_t func__direxists(qbs *path);
|
|
|
|
int32_t func__fileexists(qbs *path);
|
2023-12-09 19:46:29 +00:00
|
|
|
qbs *func__startdir();
|
|
|
|
void sub_chdir(qbs *str);
|
2023-12-15 15:24:11 +00:00
|
|
|
qbs *func__files(qbs *qbsFileSpec, int32_t passed);
|
2023-12-30 18:05:06 +00:00
|
|
|
qbs *func__fullpath(qbs *qbsPathName);
|
2023-12-09 19:46:29 +00:00
|
|
|
void sub_files(qbs *str, int32_t passed);
|
|
|
|
void sub_kill(qbs *str);
|
|
|
|
void sub_mkdir(qbs *str);
|
|
|
|
void sub_name(qbs *oldname, qbs *newname);
|
|
|
|
void sub_rmdir(qbs *str);
|