quartz-research-note/quartz/plugins
Luis Michaelis bece8fcab6
fix: properly handle absolute paths in CreatedModifiedDate (#790)
When providing an absolute path to the content directory (e.g. when using an Obsidian Vault in another directory), the build step would fail with

    Failed to process `/absolute/path/to/file.md`: ENOENT: no such file or directory, stat '/current/working/directory/absolute/path/'

This problem originated in the `CreatedModifiedDate` transformer which tries to construct a native filesystem path to the file to call `fs.stat` on. It did not however, account for the original file path contained in the received `VFile` being an absolute path and so, just concatenated the current working directory with the absolute path producing a nonexistent one.

This patch adds a simple fix for this issue by checking if the original file path is already absolute before concatenating with the current working directory.
2024-02-02 09:51:34 -08:00
..
emitters fix: index setup, styling fixes 2024-02-01 22:22:06 -08:00
filters fix: generalize frontmatter parsing and coercing 2024-01-27 21:39:16 -08:00
transformers fix: properly handle absolute paths in CreatedModifiedDate (#790) 2024-02-02 09:51:34 -08:00
index.ts fix: use slugs instead of title as basis for explorer (#652) 2023-12-27 16:44:14 -08:00
types.ts fix: allow partial when specifiying layout for emitter plugins 2024-01-26 13:40:37 -08:00
vfile.ts deps: bump everything (closes #635) (#636) 2023-12-18 09:48:40 -08:00