Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bindContext Issues with unlink and watch #167

Closed
mcandeia opened this issue Jan 13, 2025 · 1 comment
Closed

bindContext Issues with unlink and watch #167

mcandeia opened this issue Jan 13, 2025 · 1 comment
Assignees

Comments

@mcandeia
Copy link
Contributor

mcandeia commented Jan 13, 2025

Description

The unlink method within a bound context in zen-fs appears to exhibit inconsistent behavior when interacting with the watch method.

Problem: unlink Event Path Not Aligned with Bound Context

When using unlink in a bound context, the path of the event triggered by watch is not consistent.

const ctx = bindContext("/xpto");

fs.watch("/");

ctx.fs.promises.unlink("a.txt");

Observed Behavior:

The event triggered by watch in rootFs indicates the path as "a.txt", instead of being prefixed with the bound context (e.g., /xpto/a.txt).

Expected Behavior:

The path in the event should respect the bound context and be prefixed accordingly, based on the context used when unlink was executed.

@james-pre james-pre added the needs more info More information is needed to confirm or diagnose the issue label Jan 14, 2025
@james-pre james-pre removed the needs more info More information is needed to confirm or diagnose the issue label Jan 30, 2025
@james-pre james-pre self-assigned this Jan 30, 2025
@james-pre
Copy link
Member

Sorry for taking so long to get to this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants