1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

os: add hint for mv_by_cp to mv (#17036)

This commit is contained in:
Thomas Peißl 2023-01-19 15:50:57 +01:00 committed by GitHub
parent 4098612a87
commit ba1b31700e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,6 +212,7 @@ pub fn file_size(path string) u64 {
}
// mv moves files or folders from `src` to `dst`.
// if you are not sure that the source and target are on the same mount/partition use mv_by_cp
pub fn mv(src string, dst string) ! {
mut rdst := dst
if is_dir(rdst) {