diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-20 14:11:31 +0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2003-06-20 14:11:31 +0000 |
commit | 85effedca3e4cc3c10ccd835c9ea4fb712418cb9 (patch) | |
tree | 52e3ed6652abb945e6c87b045b0d4777ce4770ff /src/archive.cc | |
parent | 5079ccb45537fe8de4b9579e274523734a3f634e (diff) | |
download | guix-85effedca3e4cc3c10ccd835c9ea4fb712418cb9.tar.gz |
* Flags to indicate how values are specified on the command line
(--hash, --file, --name).
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 2fdbfb4764..591939bb6a 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) +{ +} |