davidmoten / rxjava-file

RxJava observables for files including NIO events
Apache License 2.0
82 stars 17 forks source link

Support java.nio.file.Path watch and cross-platform testing #14

Open sparty02 opened 7 years ago

sparty02 commented 7 years ago

Overloaded methods were added to the FileObservable class to provide a Path object (vs the existing File object method signature). While you could technically just have called file.toPath(), a path based API is seems to be the favored approach moving forward, most likely due to..... the ability to finally effectively test a Java FileSystem without relying on the underlying platform running the tests! Google's excellent jimfs gives the power to do pure in-memory file based testing and make unit testing a breeze.