This repository was archived by the owner on Aug 4, 2023. It is now read-only.
File tree 2 files changed +3
-8
lines changed
2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Notable changes to this project are documented in this file. The format is based
5
5
## [ Unreleased]
6
6
7
7
Breaking changes:
8
+ - Remove ` exists ` since the underlying ` Async.exists ` from ` purescript-node-fs ` has been removed (#36 by @sigma-andex )
8
9
- Update project and deps to PureScript v0.15.0 (#33 by @JordanMartinez , @thomashoneyman , @sigma-andex )
9
10
- Update ` mkdir' ` to take options arg (#34 by @JordanMartinez )
10
11
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ module Node.FS.Aff
21
21
, writeTextFile
22
22
, appendFile
23
23
, appendTextFile
24
- , exists
25
24
, fdOpen
26
25
, fdRead
27
26
, fdNext
@@ -32,10 +31,10 @@ module Node.FS.Aff
32
31
33
32
import Prelude
34
33
35
- import Effect.Aff (Aff , makeAff , nonCanceler )
36
- import Effect (Effect )
37
34
import Data.DateTime (DateTime )
38
35
import Data.Maybe (Maybe )
36
+ import Effect (Effect )
37
+ import Effect.Aff (Aff , makeAff , nonCanceler )
39
38
import Node.Buffer (Buffer )
40
39
import Node.Encoding (Encoding )
41
40
import Node.FS as F
@@ -216,11 +215,6 @@ appendFile = toAff2 A.appendFile
216
215
appendTextFile :: Encoding -> FilePath -> String -> Aff Unit
217
216
appendTextFile = toAff3 A .appendTextFile
218
217
219
- -- |
220
- -- | Check to see if a file exists.
221
- -- |
222
- exists :: String -> Aff Boolean
223
- exists file = makeAff \k -> A .exists file (pure >>> k) $> nonCanceler
224
218
225
219
-- | Open a file asynchronously. See the [Node Documentation](https://nodejs.org/api/fs.html#fs_fs_open_path_flags_mode_callback)
226
220
-- | for details.
You can’t perform that action at this time.
0 commit comments