Skip to content
Snippets Groups Projects

ENH: Add functions for File entities

Merged Florian Spreckelsen requested to merge f-file-entity into dev
All threads resolved!
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -55,7 +55,7 @@ export class Entity {
getFilePath() {
if (!this.isFile()) {
throw `Only FILE entities can have a file path.`;
throw new Error(`Only FILE entities can have a file path.`);
}
const fileDescriptor = this.wrappedEntity.getFileDescriptor();
return fileDescriptor.getPath();
Loading