Skip to content

Commit

Permalink
Use std::filesystem compliant non-member exists function for path o…
Browse files Browse the repository at this point in the history
…bject (#593)

Signed-off-by: Josh Langsfeld <[email protected]>
  • Loading branch information
jdlangs authored and Emerson Knapp committed Feb 2, 2021
1 parent 9c868e9 commit e0925e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rosbag2_storage/src/rosbag2_storage/metadata_io.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ std::string MetadataIo::get_metadata_file_name(const std::string & uri)

bool MetadataIo::metadata_file_exists(const std::string & uri)
{
return rcpputils::fs::path(get_metadata_file_name(uri)).exists();
return rcpputils::fs::exists(rcpputils::fs::path(get_metadata_file_name(uri)));
}

} // namespace rosbag2_storage

0 comments on commit e0925e8

Please sign in to comment.