From 8af7cdb6e8b495843bd2415bcba308a929e8d975 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=91=A8=E9=91=AB?= Date: Wed, 14 May 2025 12:14:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B1=E6=95=88=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 周鑫 --- interfaces/kits/js/src/mod_fs/class_stream/fs_stream.h | 2 +- interfaces/kits/js/src/mod_fs/properties/ani/listfile_ani.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/js/src/mod_fs/class_stream/fs_stream.h b/interfaces/kits/js/src/mod_fs/class_stream/fs_stream.h index 1ee619776..a6b9661e0 100644 --- a/interfaces/kits/js/src/mod_fs/class_stream/fs_stream.h +++ b/interfaces/kits/js/src/mod_fs/class_stream/fs_stream.h @@ -31,7 +31,7 @@ namespace ModuleFileIO { using namespace std; struct WriteOptions { - optional length = nullopt; + optional length = nullopt; optional offset = nullopt; optional encoding = nullopt; }; diff --git a/interfaces/kits/js/src/mod_fs/properties/ani/listfile_ani.cpp b/interfaces/kits/js/src/mod_fs/properties/ani/listfile_ani.cpp index 2e8157190..82fe98317 100644 --- a/interfaces/kits/js/src/mod_fs/properties/ani/listfile_ani.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/ani/listfile_ani.cpp @@ -145,7 +145,7 @@ tuple> ParseFilter(ani_env *env, ani_object obj) HILOGE("Illegal option.lastModifiedAfter parameter"); return { false, move(filter) }; } - filter.SetFileSizeOver(lastModifiedAfter); + filter.SetLastModifiedAfter(lastModifiedAfter); auto [succSuffix, suffix] = ParseArrayString(env, obj, "suffix"); if (!succSuffix) { -- Gitee