Skip to content

Commit 6c49f65

Browse files
committed
hidden files
1 parent 8528b95 commit 6c49f65

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/commands/build/snapshots.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,7 @@ fn compute_sha256_hash(data: &[u8]) -> String {
175175

176176
fn is_hidden(path: &Path) -> bool {
177177
path.file_name()
178-
.and_then(|name| name.to_str())
179-
.map(|name| name.starts_with('.'))
178+
.map(|name| name.to_string_lossy().starts_with('.'))
180179
.unwrap_or(false)
181180
}
182181

0 commit comments

Comments
 (0)