diff --git a/lib/src/utils/extensions/file_move.dart b/lib/src/utils/extensions/file_move.dart index 726cecc..023fd8a 100644 --- a/lib/src/utils/extensions/file_move.dart +++ b/lib/src/utils/extensions/file_move.dart @@ -14,4 +14,9 @@ extension FileMoveExt on FileSystemEntity { return newFile; } } + + Future moveResolvedFile(String newPath) async { + final resolvedFile = File(toFile.resolveSymbolicLinksSync()); + return await resolvedFile.moveFile(newPath); + } }