Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'f_chdir' can not work well (IDFGH-14025) #14846

Open
3 tasks done
hibfh opened this issue Nov 7, 2024 · 1 comment
Open
3 tasks done

'f_chdir' can not work well (IDFGH-14025) #14846

hibfh opened this issue Nov 7, 2024 · 1 comment
Assignees
Labels
Status: Opened Issue is new

Comments

@hibfh
Copy link

hibfh commented Nov 7, 2024

Answers checklist.

  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my IDF branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

General issue report

I need to use the api "f_chdir" to change the directory In my FTP server part.
I mount the emmc to fatfs vfs already
,when I try f_chdir(MOUNT_POINT),It do works,but in trouble with f_chdir(MOUNT_POINT/subdir).It return 5 which means path invalid,and i'm sure it exists.
And I change the config below
#define FF_FS_RPATH 2
#define FF_STR_VOLUME_ID 2
#define FF_VOLUME_STRS "MOUNT_POINT1","MOUNT_POINT2"
Need some helps ,thx

@espressif-bot espressif-bot added the Status: Opened Issue is new label Nov 7, 2024
@github-actions github-actions bot changed the title 'f_chdir' can not work well 'f_chdir' can not work well (IDFGH-14025) Nov 7, 2024
@nopnop2002
Copy link

nopnop2002 commented Nov 8, 2024

when I try f_chdir(MOUNT_POINT),It do works

Have you checked the return value of f_chdir?
It's probably not 0.

int ret = f_chdir(MOUNT_POINT);
printf("ret=%d\n", ret);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Opened Issue is new
Projects
None yet
Development

No branches or pull requests

4 participants