This repository was archived by the owner on Apr 22, 2023. It is now read-only.
Description
README.md exists
tmp is empty directory
at the end no symlink was created
fs.symlink and fs.symlinkSync are affected
node is running with Administrator rights
Windows 7
node v0.10.x, node v0.11.14
works fine with MinGW
> fs . symlinkSync ( 'README.md' , 'tmp/README.md' , 'file' )
Error: EISDIR , illegal operation on a directory 'D:\cc\ui - 7 \tmp \README . md '
at Error ( native )
at Object . fs . symlinkSync ( fs . js :767 :18 )
at repl:1 :4
at REPLServer . defaultEval ( repl . js :133 :27 )
at bound ( domain . js :254 :14 )
at REPLServer . runBound [ as eval ] ( domain . js :267 :12 )
at REPLServer . < anonymous > ( repl . js :280 :12 )
at REPLServer . emit ( events . js :107 :17 )
at REPLServer . Interface . _onLine ( readline . js :206 :10 )
at REPLServer . Interface . _line ( readline . js :535 :8 )
> fs . symlinkSync ( 'README.md' , 'tmp/README.md' , 'dir' )
Error: EISDIR , illegal operation on a directory 'D:\cc\ui - 7 \tmp \README . md '
at Error ( native )
at Object . fs . symlinkSync ( fs . js :767 :18 )
at repl :1 :4
at REPLServer . defaultEval ( repl . js :133 :27 )
at bound ( domain . js :254 :14 )
at REPLServer . runBound [ as eval ] ( domain . js :267 :12 )
at REPLServer . < anonymous > ( repl . js :280 :12 )
at REPLServer . emit ( events . js :107 :17 )
at REPLServer . Interface . _onLine ( readline . js :206 :10 )
at REPLServer . Interface . _line ( readline . js :535 :8 )
> fs . symlinkSync ( 'README.md' , 'tmp/' , 'file' )
Error: EPERM , operation not permitted 'README.md'
at Error ( native )
at Object . fs . symlinkSync ( fs . js :767 :18 )
at repl :1 :4
at REPLServer . defaultEval ( repl . js :133 :27 )
at bound ( domain . js :254 :14 )
at REPLServer . runBound [ as eval ] ( domain . js :267 :12 )
at REPLServer . < anonymous > ( repl . js :280 :12 )
at REPLServer . emit ( events . js :107 :17 )
at REPLServer . Interface . _onLine ( readline . js :206 :10 )
at REPLServer . Interface . _line ( readline . js :535 :8 )
> fs . symlinkSync ( 'README.md' , 'tmp/' , 'dir' )
Error: EEXIST , file already exists 'README.md'
at Error ( native )
at Object . fs . symlinkSync ( fs . js :767 :18 )
at repl :1 :4
at REPLServer . defaultEval ( repl . js :133 :27 )
at bound ( domain . js :254 :14 )
at REPLServer . runBound [ as eval ] ( domain . js :267 :12 )
at REPLServer . < anonymous > ( repl . js :280 :12 )
at REPLServer . emit ( events . js :107 :17 )
at REPLServer . Interface . _onLine ( readline . js :206 :10 )
at REPLServer . Interface . _line ( readline . js :535 :8 ) Reactions are currently unavailable
README.mdexiststmpis empty directoryfs.symlinkandfs.symlinkSyncare affectedWindows 7node v0.10.x,node v0.11.14