mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-09-30 06:22:01 +00:00
Allow symlinks to be followed for migration files
This commit is contained in:
parent
8328f893e4
commit
39544b1dd4
@ -61,7 +61,7 @@ pub(crate) fn expand_migrator_from_dir(dir: LitStr) -> crate::Result<proc_macro2
|
||||
|
||||
for entry in fs::read_dir(path)? {
|
||||
let entry = entry?;
|
||||
if !entry.metadata()?.is_file() {
|
||||
if !fs::metadata(entry.path())?.is_file() {
|
||||
// not a file; ignore
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user