Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src-tauri/src/commands/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ fn walk_dir(dir: &Path, notes: &mut Vec<Note>, base_path: &Path) {
} else if path.is_file() {
let ext = path.extension().and_then(|e| e.to_str()).unwrap_or("");
if ext == "md" || ext == "json" {
// Ignore legacy Electron window-state files
if path.file_name().and_then(|n| n.to_str()) == Some("window-state.json") {
continue;
}

if let Ok(content) = fs::read_to_string(&path) {
let metadata = fs::metadata(&path).ok();
let mtime = metadata
Expand Down
Loading