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

check if h5 file exists at xml read #15

Open
walkloud opened this issue May 13, 2021 · 0 comments
Open

check if h5 file exists at xml read #15

walkloud opened this issue May 13, 2021 · 0 comments
Assignees

Comments

@walkloud
Copy link
Member

walkloud commented May 13, 2021

make a little utility to add this file existence check

#include <unistd.h>

        bool file_exists( const std::string &filename )
        {
            return access( filename.c_str(), 0 ) == 0;
        }

so that we can check if the h5 file exists at the time of reading xml before doing any work.

@walkloud walkloud self-assigned this May 13, 2021
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

No branches or pull requests

1 participant