NotePlan / NotePlan/plugins

New DataStore.fileExists(pathname) API call

Aperta
#402 3 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@EduardMe ci sta già lavorando.

Dal 4/2/2023.

API E-1 enhancement P-3
Lingua principale
JavaScript
Stelle
204
Fork
82
Merge medio
22h 27m
PR unite (30g)
3

Descrizione

Now that we're using shared libraries, we could do with a way to check files are present. Currently we have to use .loadData(pathname) to check for this. Some of these files (react and fonts) are quite large, and we're concerned about the time it takes to load them just to test if they are there and throw the loaded file away. Better to have a DataStore.fileExists(pathname) call, which would be nearly instantaneous.

[edit to add] More importantly, I now realise, it avoids an error being thrown, which currently is what happens if pathname doesn't exist.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.