diff options
Diffstat (limited to 'src/archive.cc')
-rw-r--r-- | src/archive.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/archive.cc b/src/archive.cc index 2fdbfb47649c..591939bb6ad2 100644 --- a/src/archive.cc +++ b/src/archive.cc @@ -1,3 +1,5 @@ +#include <vector> + #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> @@ -44,7 +46,7 @@ static void dumpEntries(const string & path, DumpSink & sink) DIR * dir = opendir(path.c_str()); if (!dir) throw SysError("opening directory " + path); - Strings names; + vector<string> names; struct dirent * dirent; while (errno = 0, dirent = readdir(dir)) { @@ -56,7 +58,7 @@ static void dumpEntries(const string & path, DumpSink & sink) sort(names.begin(), names.end()); - for (Strings::iterator it = names.begin(); + for (vector<string>::iterator it = names.begin(); it != names.end(); it++) { writeString("entry", sink); @@ -134,3 +136,8 @@ void dumpPath(const string & path, DumpSink & sink) writeString(")", sink); } + + +void restorePath(const string & path, ReadSource & source) +{ +} |