Skip to content

fix(vfs): paths with ./ prefix fail to resolve in glob and file operations #1114

@chaliy

Description

@chaliy

Summary

VFS file operations fail when paths use the ./ prefix (e.g., ./tag_hello.html). The error is: io error: parent directory not found.

Reproduction

cd /tmp/blogtest
# This works:
ls tag_hello.html
# This fails:
ls ./tag_hello.html
# Error: parent directory not found

Also affects glob patterns:

ls ./*.html        # may fail
ls -t ./*.html     # may fail

Context

Discovered while running bashblog via bashkit CLI. Bashblog uses ./ prefixed paths throughout:

  • for i in ./*.html
  • ls -t ./*.html
  • rm ./"$prefix_tags"*.html

The rebuild_tags function creates files like ./tag_hello.html which fail to write.

Expected behavior

./foo should resolve identically to foo relative to the current working directory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions