diff --git a/Changelog.md b/Changelog.md
--- a/Changelog.md
+++ b/Changelog.md
@@ -1,3 +1,7 @@
+# 0.1.0.2
+
+- Fix compatibility with `filepath-1.5`
+
 # 0.1.0.1
 
 - Add missing test inputs
diff --git a/directory-ospath-streaming.cabal b/directory-ospath-streaming.cabal
--- a/directory-ospath-streaming.cabal
+++ b/directory-ospath-streaming.cabal
@@ -5,7 +5,7 @@
 name:
   directory-ospath-streaming
 version:
-  0.1.0.1
+  0.1.0.2
 synopsis:
   Stream directory entries in constant memory in vanilla IO
 description:
@@ -32,11 +32,13 @@
   Simple
 
 extra-source-files:
-  Changelog.md
-  Readme.md
   test/filesystem/*.txt
   test/filesystem/bin/*.txt
 
+extra-doc-files:
+  Changelog.md
+  Readme.md
+
 homepage:
   https://github.com/sergv/directory-ospath-streaming
 
@@ -44,6 +46,16 @@
   type: git
   location: https://github.com/sergv/directory-ospath-streaming.git
 
+-- Cabal will pick this flag up automatically during solving. Default to true
+-- since that’s what should be picked up for all future filepath versions starting at 1.5.
+flag os-string
+  description:
+    Depend on os-string package, needed for filepath >= 1.5
+  default:
+    True
+  manual:
+    False
+
 common ghc-options
   default-language:
     GHC2021
@@ -71,8 +83,17 @@
     ghc-options:
       -Wno-missing-kind-signatures
 
+common depends-on-filepath
+  if flag(os-string)
+    build-depends:
+      , filepath >= 1.5
+      , os-string >= 2.0
+  else
+    build-depends:
+      , filepath >= 1.4.100 && < 1.5
+
 library
-  import: ghc-options
+  import: ghc-options, depends-on-filepath
   exposed-modules:
     System.Directory.OsPath.FileType
     System.Directory.OsPath.Streaming
@@ -80,7 +101,7 @@
     src
   build-depends:
     , base >= 4.16 && < 5
-    , filepath >= 1.4.100
+
   if os(windows)
     build-depends:
       , atomic-counter
@@ -91,7 +112,7 @@
       , unix >= 2.8
 
 test-suite test
-  import: ghc-options
+  import: ghc-options, depends-on-filepath
   type:
     exitcode-stdio-1.0
   main-is:
@@ -103,7 +124,6 @@
     , base >= 4.16
     , directory
     , directory-ospath-streaming
-    , filepath >= 1.4.100
     , random
     , tasty
     , tasty-hunit
