diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-27 17:01:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-27 17:01:58 +0100 |
| commit | 14fa24a1aabda7925f4842ab7f7e13c1798182a4 (patch) | |
| tree | f766ce71fb4a8dbc958f599e04c9ceaf21aef2a9 /tools | |
| parent | bc419bd953dc31184aa3f3a6a3c9b8693bc34b7c (diff) | |
Use boost filesystem.
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/dumpsubs.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/dumpsubs.cc b/tools/dumpsubs.cc index 159af25..6213da0 100644 --- a/tools/dumpsubs.cc +++ b/tools/dumpsubs.cc @@ -18,6 +18,7 @@ */ #include <map> +#include <boost/filesystem.hpp> #include <getopt.h> #include "reader_factory.h" #include "reader.h" @@ -63,7 +64,7 @@ main (int argc, char* argv[]) exit (EXIT_FAILURE); } - if (access (argv[optind], F_OK) == -1) { + if (!boost::filesystem::exists (argv[optind])) { cerr << argv[0] << ": file " << argv[optind] << " not found.\n"; exit (EXIT_FAILURE); } |
