mirror of
https://gitlab.com/Theopse/fbi-i18n-zh.git
synced 2025-04-30 13:26:37 +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);
|
util_get_parent_path(parentPath, targetInfo->path, FILE_PATH_MAX);
|
||||||
|
|
||||||
char dstPath[FILE_PATH_MAX] = {'\0'};
|
char dstPath[FILE_PATH_MAX] = {'\0'};
|
||||||
|
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);
|
snprintf(dstPath, FILE_PATH_MAX, "%s%s", parentPath, textBuf);
|
||||||
|
}
|
||||||
|
|
||||||
FS_Path* srcFsPath = util_make_path_utf8(targetInfo->path);
|
FS_Path* srcFsPath = util_make_path_utf8(targetInfo->path);
|
||||||
if(srcFsPath != NULL) {
|
if(srcFsPath != NULL) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user