diff --git a/interfaces/kits/js/src/mod_fs/properties/copy.cpp b/interfaces/kits/js/src/mod_fs/properties/copy.cpp index be96aeace245a4de940fc8094464a909d941f7a5..ff75058fc975e4023d7b558d2b66b32a568b4493 100644 --- a/interfaces/kits/js/src/mod_fs/properties/copy.cpp +++ b/interfaces/kits/js/src/mod_fs/properties/copy.cpp @@ -58,6 +58,11 @@ std::recursive_mutex Copy::mutex_; std::map> Copy::jsCbMap_; uint32_t g_apiCompatibleVersion = 0; +struct NameList { + struct dirent **namelist = { nullptr }; + int direntNum = 0; +}; + tuple Copy::GetCopySignalFromOptionArg(napi_env env, const NFuncArg &funcArg) { if (funcArg.GetArgc() < NARG_CNT::THREE) { @@ -131,11 +136,6 @@ int Copy::MakeDir(const string &path) return ERRNO_NOERR; } -struct NameList { - struct dirent **namelist = { nullptr }; - int direntNum = 0; -}; - std::shared_ptr Copy::RegisterListener(napi_env env, const std::shared_ptr &infos) { auto callback = CreateSharedPtr(env, infos->listener);