Skip to content

Commit d271ce9

Browse files
authored
docs: update description of @netlify/cache-utils restore function (#6396)
1 parent 6cb919d commit d271ce9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/cache-utils/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ Current directory used to resolve relative paths.
109109
`options`: `object`\
110110
_Returns_: `Promise<Boolean>`
111111

112-
Restore a file/directory previously cached. Skipped if the file/directory already exists locally or if it has not been
113-
cached yet.
112+
Restore a file/directory previously cached. Skipped if it has not been cached yet.
114113

115-
Please be careful: this overwrites the local file/directory if any exists.
114+
Please be careful: if the file/directory was cached, this will delete local file/directory and replace it with cached
115+
content.
116116

117117
Returns `false` if the file/directory was not cached yet. Returns `true` otherwise.
118118

0 commit comments

Comments
 (0)