Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add exists function to library #47

Merged
merged 3 commits into from
Feb 10, 2024
Merged

Add exists function to library #47

merged 3 commits into from
Feb 10, 2024

Conversation

digizeph
Copy link
Member

Highlight

  • add oneio::exists(path: &str) function to check if a local or remote file exists.
    • currently support local file, http(s) remote and s3 remote files checking

Example usages

    assert!(!oneio::exists("https://spaces.bgpkit.org/oneio/test_data_NOT_EXIST.json").unwrap());
    assert!(oneio::exists("https://spaces.bgpkit.org/oneio/test_data.json").unwrap());

@digizeph digizeph merged commit 72d0cc7 into main Feb 10, 2024
1 check passed
@digizeph digizeph deleted the features/exists branch March 26, 2024 19:33
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.

1 participant