@@ -340,7 +340,7 @@ impl File {
340
340
map_fresult ( vex_sdk:: vexFileSeek ( self . fd . 0 , try_convert_offset ( offset) ?, SEEK_SET ) ) ?
341
341
} ,
342
342
343
- // vexOS does not allow seeking with negative offsets.
343
+ // VEXos does not allow seeking with negative offsets.
344
344
// That means we need to calculate the offset from the start for both of these.
345
345
SeekFrom :: End ( offset) => unsafe {
346
346
// If our offset is positive, everything is easy
@@ -430,7 +430,7 @@ impl Drop for File {
430
430
pub fn readdir ( _p : & Path ) -> io:: Result < ReadDir > {
431
431
// While there *is* a userspace function for reading file directories,
432
432
// the necessary implementation cannot currently be done cleanly, as
433
- // vexOS does not expose directory length to user programs.
433
+ // VEXos does not expose directory length to user programs.
434
434
//
435
435
// This means that we would need to create a large fixed-length buffer
436
436
// and hope that the folder's contents didn't exceed that buffer's length,
@@ -458,7 +458,7 @@ pub fn remove_dir_all(_path: &Path) -> io::Result<()> {
458
458
unsupported ( )
459
459
}
460
460
461
- pub fn try_exists ( path : & Path ) -> io:: Result < bool > {
461
+ pub fn exists ( path : & Path ) -> io:: Result < bool > {
462
462
let path = CString :: new ( path. as_os_str ( ) . as_encoded_bytes ( ) )
463
463
. map_err ( |_| io:: Error :: new ( io:: ErrorKind :: InvalidData , "Path contained a null byte" ) ) ?;
464
464
0 commit comments