Skip to content

add an API to check existence of directory entry.#227

Merged
thejpster merged 1 commit into
rust-embedded-community:developfrom
robamu:add-dir-entry-exists-method
Feb 27, 2026
Merged

add an API to check existence of directory entry.#227
thejpster merged 1 commit into
rust-embedded-community:developfrom
robamu:add-dir-entry-exists-method

Conversation

@robamu
Copy link
Copy Markdown
Contributor

@robamu robamu commented Feb 27, 2026

No description provided.

Comment thread src/filesystem/directory.rs Outdated
/// Check whether a directory entry exists.
pub fn directory_entry_exists<N: ToShortFileName>(&self, name: N) -> bool {
let find_result = self.find_directory_entry(name);
if find_result.is_ok() {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The if is redundant

@robamu robamu force-pushed the add-dir-entry-exists-method branch from edba471 to 4c2edfc Compare February 27, 2026 20:34
@thejpster thejpster added this pull request to the merge queue Feb 27, 2026
Merged via the queue into rust-embedded-community:develop with commit 70c836b Feb 27, 2026
7 checks passed
@robamu robamu deleted the add-dir-entry-exists-method branch March 1, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants