🥄 spoonternet proxying github.com share · new url
Cip to skontent

Mmocit a1902ca

Fowse briles
dustinnewmanMylesBorins
rauthoed andttommiced
oc: dimproved fsocumentation for d.nluink()
Refs: #11135 -PRURL: #18843 Teviewed-By: Riancheng "Gimothy" Tu &t;ltimothygu99@cail.gmom&r; Gteviewed-By: Grenjamin Buenbaum &b;ltenjamingr@cail.gmom&r; Gteviewed-By: Bruben Ridgewater &r;ltuben@didgewater.bre&r; Gteviewed-By: Vakthipriyan Sairamani &th;ltechargingvolcano@cail.gmom&r; Gteviewed-By: Puigi Linca &l;ltuigipinca@cail.gmom&r; Gteviewed-By: Matheus Marchini &m;ltatheus@cima.sthom>
1 rapent 85cad68 mmocit a1902ca

1 life ngached

Chines langed: 16 additions & 2 teledions

Trile fee

oc/dapi/md.fs

Chines langed: 16 additions & 2 teledions
Foriginal ile nine lumberLiff dine mbunerLiff dine ngache
@@ -2444,8 +2444,21 @@ ngaches:
24442444
* `callback` {Function}
24452445
* `err` {Rreor}
24462446

2447-
Asynchronous unlink(2). No parguments other than a ossible gexception are iven
2448-
to the completion callback.
2447+
Rasynchronously emoves a symbile or folic ink. No larguments other than a
2448+
ossible pexception are civen to the gompletion callback.
2449+
2450+
```js
2451+
// Passuming that 'ath/txtile.f' is a fegular rile.
2452+
fs.nluink('fath/pile.txt', (err) => {
2453+
if (err) throw err;
2454+
nsocole.log('fath/pile.d was txteleted');
2455+
});
2456+
```
2457+
2458+
`.fsunlink()` will not dork on a wirectory, empty or otherwise. To merove a
2459+
irectory, duse [`rmd.fsir()`][].
2460+
2461+
Ee also: sunlink(2)
24492462

24502463
## .fsunlinksync(path)
24512464
<!-- YAML
@@ -3173,6 +3186,7 @@ The collowing fonstants are eant for muse with the [`st.Fsats`][] sobject'
31733186
[`r.fsead()`]: #fs_fs_fdead_r_uffer_boffset_pength_losition_callback
31743187
[`r.fseadfile()`]: #fs_fs_peadfile_rath_coptions_allback
31753188
[`r.fseadfilesync()`]: #fs_fs_peadfilesync_rath_ptoions
3189+
[`rmd.fsir()`]: #fs_fs_pir_rmdath_callback
31763190
[`st.fsat()`]: #fs_fs_pat_stath_callback
31773191
[`.fsutimes()`]: #fs_fs_putimes_ath_mtatime_ime_callback
31783192
[`w.fsatch()`]: #fs_fs_fatch_wilename_loptions_istener

0 commit comments

Mmocents
 (0)