diff options
author | isaacs <i@izs.me> | 2012-08-04 23:39:11 +0400 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-08-06 19:40:56 +0400 |
commit | 168a5557803b40b4930c3b4f9587b67a6d566b13 (patch) | |
tree | 6dc5b4ab419d5d8112c9a125af185f48ff741986 /test/fixtures | |
parent | 0414e14702af7258a9197f6b979e32261f96f910 (diff) |
fs: fix naming of truncate/ftruncate functions
For backwards compatibility, fs.truncate(<number>) will proxy to
fs.ftruncate.
Fix #3805
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/create-file.js | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/fixtures/create-file.js b/test/fixtures/create-file.js index 1e87bc92dfb..c711da671a3 100644 --- a/test/fixtures/create-file.js +++ b/test/fixtures/create-file.js @@ -24,6 +24,4 @@ var fs = require('fs'); var file_name = process.argv[2]; var file_size = parseInt(process.argv[3]); -var fd = fs.openSync(file_name, 'w'); -fs.truncateSync(fd, file_size); -fs.closeSync(fd); +fs.truncateSync(file_name, file_size); |