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:
@@ -212,6 +212,7 @@ pub fn file_size(path string) u64 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// mv moves files or folders from `src` to `dst`.
|
// 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) ! {
|
pub fn mv(src string, dst string) ! {
|
||||||
mut rdst := dst
|
mut rdst := dst
|
||||||
if is_dir(rdst) {
|
if is_dir(rdst) {
|
||||||
|
Reference in New Issue
Block a user