Skip to content

Commit ee8a0fc

Browse files
committed
Export link functions
1 parent cff7baa commit ee8a0fc

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,20 @@
3232

3333
chown :: forall eff. FilePath -> Number -> Number -> Callback eff Unit -> Eff (fs :: FS | eff) Unit
3434

35+
link :: forall eff. FilePath -> FilePath -> Callback eff Unit -> Eff (fs :: FS | eff) Unit
36+
3537
readFile :: forall eff. FilePath -> Callback eff Buffer -> Eff (fs :: FS | eff) Unit
3638

3739
readTextFile :: forall eff. Encoding -> FilePath -> Callback eff String -> Eff (fs :: FS | eff) Unit
3840

41+
readlink :: forall eff. FilePath -> Callback eff FilePath -> Eff (fs :: FS | eff) Unit
42+
3943
rename :: forall eff. FilePath -> FilePath -> Callback eff Unit -> Eff (fs :: FS | eff) Unit
4044

4145
stat :: forall eff. FilePath -> Callback eff Stats -> Eff (fs :: FS | eff) Unit
4246

47+
symlink :: forall eff. FilePath -> FilePath -> SymlinkType -> Callback eff Unit -> Eff (fs :: FS | eff) Unit
48+
4349
truncate :: forall eff. FilePath -> Number -> Callback eff Unit -> Eff (fs :: FS | eff) Unit
4450

4551
writeFile :: forall eff. FilePath -> Buffer -> Callback eff Unit -> Eff (fs :: FS | eff) Unit
@@ -93,14 +99,20 @@
9399

94100
chown :: forall eff. FilePath -> Number -> Number -> Eff (err :: Exception Error, fs :: FS | eff) Unit
95101

102+
link :: forall eff. FilePath -> FilePath -> Eff (err :: Exception Error, fs :: FS | eff) Unit
103+
96104
readFile :: forall eff. FilePath -> Eff (err :: Exception Error, fs :: FS | eff) Buffer
97105

98106
readTextFile :: forall eff. Encoding -> FilePath -> Eff (err :: Exception Error, fs :: FS | eff) String
99107

108+
readlink :: forall eff. FilePath -> Eff (err :: Exception Error, fs :: FS | eff) FilePath
109+
100110
rename :: forall eff. FilePath -> FilePath -> Eff (err :: Exception Error, fs :: FS | eff) Unit
101111

102112
stat :: forall eff. FilePath -> Eff (err :: Exception Error, fs :: FS | eff) Stats
103113

114+
symlink :: forall eff. FilePath -> FilePath -> SymlinkType -> Eff (err :: Exception Error, fs :: FS | eff) Unit
115+
104116
truncate :: forall eff. FilePath -> Number -> Eff (err :: Exception Error, fs :: FS | eff) Unit
105117

106118
writeFile :: forall eff. FilePath -> Buffer -> Eff (err :: Exception Error, fs :: FS | eff) Unit

src/Node/FS/Async.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ module Node.FS.Async
55
, chown
66
, chmod
77
, stat
8+
, link
9+
, symlink
10+
, readlink
811
, readFile
912
, readTextFile
1013
, writeFile

src/Node/FS/Sync.purs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ module Node.FS.Sync
44
, chown
55
, chmod
66
, stat
7+
, link
8+
, symlink
9+
, readlink
710
, readFile
811
, readTextFile
912
, writeFile

0 commit comments

Comments
 (0)