fix: copy internal files recursively

This commit is contained in:
Prateek Sunal
2024-10-08 19:19:22 +05:30
parent 10b4abf9cd
commit c2413a599e

View File

@@ -109,12 +109,11 @@ class DirectoryUtils {
}
if (Platform.isLinux && await oldDataDir.exists()) {
// execute shell command to recursively copy old data dir to new data dir
final result = await Process.run(
"cp",
[
"-r",
oldDataDir.path,
"${oldDataDir.path}/*",
newDataDir.path,
],
);