NotePlan / NotePlan/plugins

New DataStore.fileExists(pathname) API call

オープン
#402 コメント 3 件 リアクション 0 件 担当者 1 名 GitHub で見る

@EduardMe がすでに取り組んでいます。

2023年2月4日 から。

API E-1 enhancement P-3
主要言語
JavaScript
スター
204
フォーク
82
平均マージ
22時間 27分
マージ済み PR(30日)
3

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。