mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-29 11:51:31 +03:00
std: fs: uefi: Implement canonicalize
- Should be same as absolute in UEFI since there are no symlinks. - Also each absolute path representation should be unique according to the UEFI specification. Signed-off-by: Ayush Singh <ayush@beagleboard.org>
This commit is contained in:
@@ -315,8 +315,8 @@ pub fn lstat(_p: &Path) -> io::Result<FileAttr> {
|
||||
unsupported()
|
||||
}
|
||||
|
||||
pub fn canonicalize(_p: &Path) -> io::Result<PathBuf> {
|
||||
unsupported()
|
||||
pub fn canonicalize(p: &Path) -> io::Result<PathBuf> {
|
||||
crate::path::absolute(p)
|
||||
}
|
||||
|
||||
pub fn copy(_from: &Path, _to: &Path) -> io::Result<u64> {
|
||||
|
||||
Reference in New Issue
Block a user