]> wimlib.net Git - wimlib/blobdiff - include/wimlib/pattern.h
Make absolute ExclusionException patterns include ancestor directories
[wimlib] / include / wimlib / pattern.h
index 67c20730e31085f110df8be2470a0e3cbc70dac5..b0e299958fc7c48c0e951aff3bf91c6643e89a1c 100644 (file)
@@ -5,8 +5,22 @@
 
 struct wim_dentry;
 
+/* Flags for match_path() and match_pattern_list() */
+
+/*
+ * If set, subdirectories (and sub-files) are also matched.
+ * For example, the pattern "/dir" would match the path "/dir/file".
+ */
+#define MATCH_RECURSIVELY      0x01
+
+/*
+ * If set, ancestor directories are also matched.
+ * For example, the pattern "/dir/file" would match the path "/dir".
+ */
+#define MATCH_ANCESTORS                0x02
+
 extern bool
-match_path(const tchar *path, const tchar *pattern, bool prefix_ok);
+match_path(const tchar *path, const tchar *pattern, int match_flags);
 
 extern int
 expand_path_pattern(struct wim_dentry *root, const tchar *pattern,