load(project, mode) {
		const lock = new RWlock();
		const filepath = path.join(config.projectPath, project, 'project.mlt');
		const lockFile = (mode === 'r') ? lock.readLock : lock.writeLock;
		return new Promise((resolve, reject) => {
			lockFile(filepath, (release) => {
				fs.open(filepath, 'r+', (err, fd) => {
					if (err) {
						release();
						return reject(err);
					}
					fs.readFile(fd, (err, data) => {
						if (err) {
							release();
							return reject(err);
						}
						const dom = new JSDOM(data, {contentType: 'application/xml'});
						const document = dom.window.document;

						if (mode === 'r') release();
						return resolve([document, fd, release]);
					});
				});
			});
		});
	}
Load project MLT file

@param {string} project Project ID.
@param {string} mode Read 'r' or Write 'w'.
@returns {Promise<[document, number, function]>}