I have i directory structure such as:
migrations/foo
├── V1__init.sql
├── V2__colt.sql
└── V3__other_thing.sql
If I pass migrations/foo to util::find_migration_files it will print a warning saying that foo doesn't match the expected regular expression.
I think the fix could be as simple as adding min_depth(1) to the WalkDir::new(...) indicating that you don't want the root. A more robust solution would be to filter out all directories.
I have i directory structure such as:
If I pass
migrations/footoutil::find_migration_filesit will print a warning saying thatfoodoesn't match the expected regular expression.I think the fix could be as simple as adding
min_depth(1)to theWalkDir::new(...)indicating that you don't want the root. A more robust solution would be to filter out all directories.