Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/rarfilesource.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOctaneSnail <os@v12pwr.com>2008-12-22 02:29:18 +0300
committerOctaneSnail <os@v12pwr.com>2008-12-22 02:29:18 +0300
commit6c913b5d1b58edf678e0f9220169fef62739b16c (patch)
tree15b3b5f0f0ac3a49e901ceeca96c436f9d73e556 /RFS.cpp
parent8dbe4ec68271f69dd7887753bf06b8fc26e62a64 (diff)
Skip over directories.
Diffstat (limited to 'RFS.cpp')
-rw-r--r--RFS.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/RFS.cpp b/RFS.cpp
index 711b556..14add1a 100644
--- a/RFS.cpp
+++ b/RFS.cpp
@@ -414,6 +414,12 @@ int CRARFileSource::ScanArchive (wchar_t *archive_name, List<File> *file_list, i
DbgLog ((LOG_TRACE, 2, L"FILENAME \"%S\"", rh.fh.filename));
+ if ((rh.ch.flags & LHD_WINDOWMASK) == LHD_DIRECTORY)
+ {
+ DbgLog ((LOG_TRACE, 2, L"Skipping directory."));
+ HEADER_SKIP_FILE
+ }
+
if (filename)
{
if (strcmp (filename, rh.fh.filename))