Gets the object as serialized JSON string. Or sets serialized JSON (to fill this object's metadata by the metadata included within the JSON)
Set to true after deletion so that 'change' event is called and item is removed from UI lists.
Drive letter
Drive type string property ('optical_drive', 'drive')
Gets/sets media type of the folder
Gets/sets whether the folder has subfolders
Gets/Sets icon of this folder.
Gets integer id of the object
Returns true if media isn't inserted (e.g. for optical CD drives)
NOTE: Introduced in 5.0.4
Whether this object can be listened (e.g. for 'change' event)
Gets whether the folder is actually M3U/PLA playlist
Is source for status bar informations.
Media type integer property (returning integer values from https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdrivetypea )
e.g. DRIVE_FIXED = 3
NOTE: Added in version 5.0.4
Gets/sets the folder to be monitored for changes
Gets/sets the folder to be monitored continuously
Gets/sets the folder to be monitored on startup
Gets the object type as string
Gets/Sets path of this folder.
Gets persistent id of the object
Serial numbrer
Whether object support pin to pinned list
Temporary JS objects can be attached here
Gets/Sets title of this folder.
Drive label
Creates sub-folder of this folder
Unlock object from update state. beginUpdate and endUpdate must be in pair. When endUpdate is called, change event is called.
Get all external object links (acoustID, musicbrainz, wikipedia etc.)
Gets list of individual files as string list NOTE: Introduced in version 5.0.4
If true then lists files contained even within sub-folders
list of files
var list = folder.getFileList( true {recursive});
await list.whenLoaded();
// all files are loaded here
Gets sub-folders of this folder
Get external link associated with the object. All link identifiers are (updated list is available in consts.js) : var LINK_MUSICBRAINZ = 'musicbrainz', LINK_ACOUSTID = 'acoustid', LINK_TVDB = 'tvdb', LINK_MAZE = 'maze', LINK_IMDB = 'imdb', LINK_WIKI = 'wiki', LINK_ECHOPRINT = 'echoprint', LINK_MOVIEDB = 'moviedb', LINK_DISCOGS = 'discogs';
Rest
...params: any[]Gets folder from path
string
Event is called when object is somehow changed
See App.listen
additional change type (can have values like 'tracklist', 'deleted', 'title' or undefined)
Rest
...additionalArgs: any[]app.listen(object, 'change', (changeType) => { });
Event is called when object is going to destroy
See App.listen
Event is called when status info of the object is changed
See App.listen
SharedDrive class
SharedDrive