Skip to content

Commit

Permalink
dev: add moveResolvedFile extension to File methods that moves the sy…
Browse files Browse the repository at this point in the history
…mlink target instead of the symlink itself
  • Loading branch information
tdiam committed Oct 21, 2023
1 parent fddb8f5 commit 43b4a7b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/src/utils/extensions/file_move.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit 43b4a7b

Please sign in to comment.