INNER CODE UNIT · TypeScript

EXPONEXTFSprocessQueue

mowispace/react-native-logs · src/transports/fileAsyncTransport.ts:128

const EXPONEXTFSprocessQueue = async () => {
  if (EXPONEXTFSqueue.length === 0) return;
  EXPONEXTFSelaborate = true;
  const item = EXPONEXTFSqueue[0];

  try {
    const FS: EXPONEXTFS = item.FS;
    const FileClass = FS.File;
    if (!FileClass) throw new Error("EXPO NEXT FS does not expose File");

    const file = new FileClass(item.file);

    try {
      if (!file.exists) {
        file.create({ intermediates: true });
      }
    } catch (e) {
      // maybe concurrently created

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…