1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-02 03:50:36 +00:00

Make FILES work for cases where fileSpec does not contain a directory

This commit is contained in:
Samuel Gomes 2024-01-24 19:01:36 +05:30
parent a5fedd9d0c
commit 8fa66795b8

View file

@ -792,6 +792,9 @@ void sub_files(qbs *str, int32_t passed) {
} else {
std::string d;
filepath_split(fileSpec, d, pathName);
if (d.empty())
d = "./"; // default to the current directory if one is not specified
directory = FS_GetFQN(d.c_str());
}
} else {