Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 3 of 3) sorted by relevance

/DragonOS/user/apps/test-symlink/src/
H A Dmain.rs20 assert!(Path::new(target).exists(), "Target file was not created"); in main()
21 assert!(Path::new(dir).exists(), "Target dir was not created"); in main()
25 assert!(Path::new(symlink_path).exists(), "Symlink was not created"); in main()
38 assert!(!Path::new(symlink_path).exists(), "Symlink was not deleted"); in main()
39 assert!(!Path::new(target).exists(), "Target file was not deleted"); in main()
40 assert!(!Path::new(dir).exists(), "Directory was not deleted"); in main()
/DragonOS/kernel/crates/ida/src/
H A Dlib.rs117 pub fn exists(&self, id: usize) -> bool { in exists() method
125 (start_id..end).find(|&i| !self.exists(i)) in do_find_first_free_index()
195 assert_eq!(ida.exists(i), true); in test_id_allocator()
202 assert_eq!(ida.exists(i), false); in test_id_allocator()
204 assert_eq!(ida.exists(i), true); in test_id_allocator()
/DragonOS/kernel/src/driver/tty/
H A Dtty_driver.rs305 if self.ida.lock().exists(i) { in init_tty_device()