NotePlan / NotePlan/plugins

New DataStore.fileExists(pathname) API call

Abierto
#402 3 comentarios 0 reacciones 1 asignado Ver en GitHub

@EduardMe ya está trabajando en esto.

Desde el 4/2/2023.

API E-1 enhancement P-3
Lenguaje dominante
JavaScript
Estrellas
204
Forks
82
Merge medio
22 h 27 min
PR fusionados (30 d)
3

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.