fix hidden files detection
diff --git a/example/archive_self.dart b/example/archive_self.dart
index a15fd8d..d1e7c68 100644
--- a/example/archive_self.dart
+++ b/example/archive_self.dart
@@ -28,7 +28,7 @@
     final name = p.relative(entry.path, from: root.path);
 
     // Let's also ignore hidden directories and files.
-    if (name.startsWith('.')) continue;
+    if (name.split(p.separator).any((part) => part.startsWith('.'))) continue;
 
     // Finally, we should ignore the output file since weird things may happen
     // otherwise.