Skip to content

Commit d858594

Browse files
committed
Fix os.stat on Windows
1 parent 709010f commit d858594

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vm/src/stdlib/os.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -949,7 +949,7 @@ fn os_symlink(
949949
vm: &VirtualMachine,
950950
) -> PyResult<()> {
951951
use std::os::windows::fs as win_fs;
952-
let meta = fs::metadata(src.path).map_err(|err| convert_io_error(vm, err))?;
952+
let meta = fs::metadata(src.path.clone()).map_err(|err| convert_io_error(vm, err))?;
953953
let ret = if meta.is_file() {
954954
win_fs::symlink_file(src.path, dst.path)
955955
} else if meta.is_dir() {

0 commit comments

Comments
 (0)