mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-10-02 07:21:08 +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)? {
|
for entry in fs::read_dir(path)? {
|
||||||
let entry = entry?;
|
let entry = entry?;
|
||||||
if !entry.metadata()?.is_file() {
|
if !fs::metadata(entry.path())?.is_file() {
|
||||||
// not a file; ignore
|
// not a file; ignore
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user