this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #1582 from msx80/fix_fs2

fix path problems with baremeta #1541

authored by

Vadim Grigoruk and committed by
GitHub
22378fb3 1f52f07a

+4 -3
+4 -3
src/studio/fs.c
··· 570 570 #if defined(BAREMETALPI) 571 571 dbg("fsIsDirSync %s\n", name); 572 572 FILINFO s; 573 - 574 - FRESULT res = f_stat(name, &s); 573 + const char* path = tic_fs_path(fs, name); 574 + FRESULT res = f_stat(path, &s); 575 575 if (res != FR_OK) return false; 576 576 577 577 return s.fattrib & AM_DIR; ··· 912 912 // TODO BAREMETALPI 913 913 dbg("makeDir %s\n", name); 914 914 915 - char* path = strdup(name); 915 + const FsString* pathString = tic_fs_path(fs, name); 916 + char* path = strdup(pathString); 916 917 if (path && *path) { // make sure result has at least 917 918 if (path[strlen(path) - 1] == '/') // one character 918 919 path[strlen(path) - 1] = 0;