Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

228 B
Raw Blame
import { isNil } from '../../../shared/utils';

export function isFileNotFoundError({ error }: { error?: unknown }): boolean {
  return !isNil(error) && typeof error === 'object' && 'code' in error && error.code === 'ENOENT';
}