mafintosh / mafintosh/level-filesystem

rename file

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
166
Forks
23
PR merge metrics
No merged PRs in 30d

Description

renamed file is empty

```
test('rename file', function(fs, t) {
var contents = 'foo';
fs.writeFile('/foo', contents, function() {
fs.rename('/foo', '/bar', function(err) {
fs.readFile('/bar', function(err, buf) {
t.notOk(err);
t.same(buf.toString(), contents); // buf.toString() === ''
t.end();
});
});
});
});
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the inline “rename file” test and trace the fs.rename and fs.readFile entry points it exercises. Reproduce the failure, then verify that renaming /foo to /bar preserves the original contents and that the test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
operating-systems
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.