mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
windows symlink flag
This commit is contained in:
committed by
Jeong, YunWon
parent
6e0b00d60c
commit
a7b761a89c
@@ -168,6 +168,9 @@ fn meta_to_stat(meta: &std::fs::Metadata, file_id: u64) -> std::io::Result<StatS
|
||||
} else {
|
||||
m |= libc::S_IFREG;
|
||||
}
|
||||
if meta.is_symlink() {
|
||||
m |= 0o100000;
|
||||
}
|
||||
if meta.permissions().readonly() {
|
||||
m |= 0o444;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user