-
-
Notifications
You must be signed in to change notification settings - Fork 9
lib.photos library.model.file type.FileType
lib/photos-library/model/file-type.FileType
This class represents the type of file a given asset has
• Private
new FileType(descriptor
)
Constructs a new FileType
Name | Type | Description |
---|---|---|
descriptor |
string |
The descriptor as provided by the backend |
lib/photos-library/model/file-type.ts:62
• descriptor: string
The descriptor, as provided by the backend
lib/photos-library/model/file-type.ts:56
▸ equal(fileType
): boolean
Compares the given FileType to this instance
Name | Type | Description |
---|---|---|
fileType |
FileType |
A FileType to compare this instance to |
boolean
True, if the given FileType is equal to this instance
lib/photos-library/model/file-type.ts:118
▸ getExtension(): string
string
The FileType as a file extension
lib/photos-library/model/file-type.ts:109
▸ Static
fromAssetType(descriptor
, ext
): FileType
Creates the file type from the backend
Name | Type | Description |
---|---|---|
descriptor |
string |
The descriptor as provided by the backend |
ext |
string |
The extension as provided by the encoded filename |
The newly created FileType
Throws
An iCPSError, if the provided descriptor is unknown to the script
lib/photos-library/model/file-type.ts:73
▸ Static
fromExtension(ext
): FileType
Creates a file type from a file extension
Name | Type | Description |
---|---|---|
ext |
string |
The file extension of the file |
The newly created FileType
Throws
An iCPSError, if the provided extension is unknown to the script
- app/error/codes/app
- app/error/codes/archive
- app/error/codes/icloud-auth
- app/error/codes/icloud-photos
- app/error/codes/icloud-query-parser
- app/error/codes/library
- app/error/codes/mfa
- app/error/codes/resources
- app/error/codes/sync
- app/error/codes/validator
- app/error/error
- app/error/error-codes
- app/event/cli
- app/event/error-handler
- app/event/log
- app/event/metrics-exporter
- app/factory
- app/icloud-app
- lib/archive-engine/archive-engine
- lib/icloud/icloud
- lib/icloud/icloud-photos/icloud-photos
- lib/icloud/icloud-photos/query-builder
- lib/icloud/icloud-photos/query-parser
- crypto
- lib/icloud/mfa/mfa-method
- lib/icloud/mfa/mfa-server
- lib/photos-library/constants
- lib/photos-library/model/album
- lib/photos-library/model/asset
- lib/photos-library/model/file-type
- lib/photos-library/model/photos-entity
- lib/photos-library/photos-library
- lib/resources/event-manager
- lib/resources/events-types
- lib/resources/main
- lib/resources/network-manager
- lib/resources/network-types
- lib/resources/resource-manager
- lib/resources/resource-types
- lib/resources/validator
- lib/sync-engine/helper
- lib/sync-engine/sync-engine
- main