lib/vars.js
function ReaddirPlusFile(source) {
	/**
	 * File name. Eg. "file.txt"
	 * @type {string}
	 */
	this.name = null;

	/**
	 * Full path. Eg. "/home/myname/path/to/directory/subdir/file.txt"
	 * @type {string}
	 */
	this.path = null;

	/**
	 * Relative path, based on the directory you submitted to readdir. Eg. "subdir/file.txt"
	 * @type {string}
	 */
	this.relativePath = null;

	/**
	 * File name without extension. Eg. "file"
	 * @type {string}
	 */
	this.basename = null;

	/**
	 * Extension with leading dot. Eg. ".txt"
	 * @type {string}
	 */
	this.extension = null;

	/**
	 * One of vars.FILE_TYPES
	 * @type {FILE_TYPES}
	 */
	this.type = null;

	/**
	 * File or directory stats
	 * @type {fs.Stats}
	 */
	this.stat = null;

	Object.assign(this, source);
}
function ReaddirPlusFile(source) {
	/**
	 * File name. Eg. "file.txt"
	 * @type {string}
	 */
	this.name = null;

	/**
	 * Full path. Eg. "/home/myname/path/to/directory/subdir/file.txt"
	 * @type {string}
	 */
	this.path = null;

	/**
	 * Relative path, based on the directory you submitted to readdir. Eg. "subdir/file.txt"
	 * @type {string}
	 */
	this.relativePath = null;

	/**
	 * File name without extension. Eg. "file"
	 * @type {string}
	 */
	this.basename = null;

	/**
	 * Extension with leading dot. Eg. ".txt"
	 * @type {string}
	 */
	this.extension = null;

	/**
	 * One of vars.FILE_TYPES
	 * @type {FILE_TYPES}
	 */
	this.type = null;

	/**
	 * File or directory stats
	 * @type {fs.Stats}
	 */
	this.stat = null;

	Object.assign(this, source);
}
function ReaddirPlusFile ( source ) { /**
	 * File name. Eg. "file.txt"
	 * @type {string}
	 */ this . name = null ; /**
	 * Full path. Eg. "/home/myname/path/to/directory/subdir/file.txt"
	 * @type {string}
	 */ this . path = null ; /**
	 * Relative path, based on the directory you submitted to readdir. Eg. "subdir/file.txt"
	 * @type {string}
	 */ this . relativePath = null ; /**
	 * File name without extension. Eg. "file"
	 * @type {string}
	 */ this . basename = null ; /**
	 * Extension with leading dot. Eg. ".txt"
	 * @type {string}
	 */ this . extension = null ; /**
	 * One of vars.FILE_TYPES
	 * @type {FILE_TYPES}
	 */ this . type = null ; /**
	 * File or directory stats
	 * @type {fs.Stats}
	 */ this . stat = null ; Object . assign ( this , source ) ; }
File data returned by readdirPlus
@param source
File data returned by readdirPlus