]> wimlib.net Git - wimlib/blobdiff - include/wimlib.h
Improve handling of invalid filenames
[wimlib] / include / wimlib.h
index 906a15c796cc78a8c2ed062da0e11d419adec3fb..02f7473288c814b386fe2682f7c78d2125e4d2f7 100644 (file)
@@ -722,6 +722,18 @@ struct wimlib_capture_config {
 /** Extract files to standard output rather than to the filesystem. */
 #define WIMLIB_EXTRACT_FLAG_TO_STDOUT                  0x00000400
 
+/** Instead of ignoring files and directories with names that cannot be
+ * represented on the current platform (note: Windows has more restrictions on
+ * filenames than UNIX), try to replace characters or append junk to the names
+ * so that they can be extracted in some form. */
+#define WIMLIB_EXTRACT_FLAG_REPLACE_INVALID_FILENAMES  0x00000800
+
+/** On Windows, when there exist two or more files with the same case
+ * insensitive name (but different case sensitive names), try to extract them
+ * all by appending junk to the end of them, rather than extracting an
+ * arbitrarily only one.  */
+#define WIMLIB_EXTRACT_FLAG_ALL_CASE_CONFLICTS         0x00001000
+
 /******************************
  * WIMLIB_MOUNT_FLAG_*
  ******************************/