# HG changeset patch # User Yaroslav Zhuravlev # Date 1583346990 0 # Node ID 827a6d7fe108081d861a299495db6d0da5f8dcc3 # Parent d3d5b67a146270018f72f563849fce08fe97841a Reordered alphabetically njs file system methods. diff -r d3d5b67a1462 -r 827a6d7fe108 xml/en/docs/njs/reference.xml --- a/xml/en/docs/njs/reference.xml Wed Mar 04 11:30:48 2020 +0000 +++ b/xml/en/docs/njs/reference.xml Wed Mar 04 18:36:30 2020 +0000 @@ -1287,6 +1287,36 @@ (0.3.9). +renameSync(oldPath, +newPath) + +Synchronously changes the name or location of a file from +oldPath to newPath +(0.3.4). + +>> var fs = require('fs') +undefined +>> var file = fs.renameSync('hello.txt', 'HelloWorld.txt') +undefined + + + +symlinkSync(target, +path) + +Synchronously creates the link called path +pointing to target using +symlink(2) +(0.3.9). +Relative targets are relative to the link’s parent directory. + + +unlinkSync(path) + +Synchronously unlinks a file by path +(0.3.9). + + writeFileSync(filename, data[, options]) @@ -1318,36 +1348,6 @@ -renameSync(oldPath, -newPath) - -Synchronously changes the name or location of a file from -oldPath to newPath -(0.3.4). - ->> var fs = require('fs') -undefined ->> var file = fs.renameSync('hello.txt', 'HelloWorld.txt') -undefined - - - -symlinkSync(target, -path) - -Synchronously creates the link called path -pointing to target using -symlink(2) -(0.3.9). -Relative targets are relative to the link’s parent directory. - - -unlinkSync(path) - -Synchronously unlinks a file by path -(0.3.9). - -