static EntryType? fromInt(int n) { switch (n) { case 1: return EntryType.file; case 2: return EntryType.directory; default: return null; } }