2019-07-14 15:14发布
TOPCB 发表于 2018-12-13 20:06 我看代码里面有,楼主看一下创建文件夹的代码有没有: if (res == FR_OK) res = dir_register(&dj); /* Register the object to the directoy */ if (res != FR_OK) {
最多设置5个标签!
http://elm-chan.org/fsw/ff/doc/fattime.html
if (res == FR_OK) res = dir_register(&dj); /* Register the object to the directoy */
if (res != FR_OK) {
remove_chain(dj.fs, dcl); /* Could not register, remove cluster chain */
} else {
dir = dj.dir;
dir[DIR_Attr] = AM_DIR; /* Attribute */
ST_DWORD(dir + DIR_WrtTime, tm); /* Created time */
st_clust(dir, dcl); /* Table start cluster */
dj.fs->wflag = 1;
res = sync_fs(dj.fs);
多谢!f_mkdir里面是有这段代码的,但文件夹还是没有“创建时间”实际情况参考附件图片
一周热门 更多>