kura-expo-fs
Version:
The FileSystem API abstraction library, Expo Filesystem Plugin
35 lines • 1.07 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ExpoFsDirectoryEntry = void 0;
const kura_1 = require("kura");
const ExpoFsFileEntry_1 = require("./ExpoFsFileEntry");
class ExpoFsDirectoryEntry extends kura_1.AbstractDirectoryEntry {
constructor(params) {
super(params);
}
toDirectoryEntry(obj) {
return new ExpoFsDirectoryEntry({
accessor: this.params.accessor,
...obj,
});
}
createEntry(obj) {
return obj.size != null
? new ExpoFsFileEntry_1.ExpoFsFileEntry({
accessor: this.params.accessor,
...obj,
})
: new ExpoFsDirectoryEntry({
accessor: this.params.accessor,
...obj,
});
}
toFileEntry(obj) {
return new ExpoFsFileEntry_1.ExpoFsFileEntry({
accessor: this.params.accessor,
...obj,
});
}
}
exports.ExpoFsDirectoryEntry = ExpoFsDirectoryEntry;
//# sourceMappingURL=ExpoFsDirectoryEntry.js.map