mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-06 03:58:02 +08:00
Fix path of renamed directories.
This commit is contained in:
parent
e8fb789618
commit
6bbbed747c
@ -32,7 +32,11 @@ void action_rename(linked_list* items, list_item* selected) {
|
||||
util_get_parent_path(parentPath, targetInfo->path, FILE_PATH_MAX);
|
||||
|
||||
char dstPath[FILE_PATH_MAX] = {'\0'};
|
||||
snprintf(dstPath, FILE_PATH_MAX, "%s%s", parentPath, textBuf);
|
||||
if(targetInfo->attributes & FS_ATTRIBUTE_DIRECTORY) {
|
||||
snprintf(dstPath, FILE_PATH_MAX, "%s%s/", parentPath, textBuf);
|
||||
} else {
|
||||
snprintf(dstPath, FILE_PATH_MAX, "%s%s", parentPath, textBuf);
|
||||
}
|
||||
|
||||
FS_Path* srcFsPath = util_make_path_utf8(targetInfo->path);
|
||||
if(srcFsPath != NULL) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user