1 line
36 KiB
Plaintext
1 line
36 KiB
Plaintext
{"version":3,"file":"sander.es6.js","sources":["../src/sander.js","../src/extraMethods/symlinkOrCopy.js","../src/extraMethods/rimraf.js","../src/extraMethods/lsr.js","../src/extraMethods/copyFile.js","../src/extraMethods/copydir.js","../src/specialMethods/writeFile-appendFile.js","../src/specialMethods/symlink.js","../src/specialMethods/open.js","../src/specialMethods/mkdir.js","../src/specialMethods/link-rename.js","../src/specialMethods/exists.js","../src/specialMethods/createReadStream-createWriteStream.js","../src/utils/resolvePathAndOptions.js","../src/methodMakers/fileDescriptorMethod.js","../src/methodMakers/standardMethod.js","../src/utils/resolvePath.js"],"sourcesContent":["import * as fs from 'graceful-fs';\nimport * as es6Promise from 'es6-promise';\nimport { syncMethod, asyncMethod } from './methodMakers/standardMethod';\nimport { asyncFileDescriptorMethod } from './methodMakers/fileDescriptorMethod';\n\n// standard async methods\nexport const chmod = asyncMethod( 'chmod' );\nexport const chown = asyncMethod( 'chown' );\nexport const createReadStream = asyncMethod( 'createReadStream' );\nexport const createWriteStream = asyncMethod( 'createWriteStream' );\nexport const lchmod = asyncMethod( 'lchmod' );\nexport const lchown = asyncMethod( 'lchown' );\nexport const lstat = asyncMethod( 'lstat' );\nexport const readdir = asyncMethod( 'readdir' );\nexport const readFile = asyncMethod( 'readFile' );\nexport const readlink = asyncMethod( 'readlink' );\nexport const realpath = asyncMethod( 'realpath' );\nexport const rmdir = asyncMethod( 'rmdir' );\nexport const stat = asyncMethod( 'stat' );\nexport const truncate = asyncMethod( 'truncate' );\nexport const unlink = asyncMethod( 'unlink' );\nexport const utimes = asyncMethod( 'utimes' );\nexport const unwatchFile = asyncMethod( 'unwatchFile' );\nexport const watch = asyncMethod( 'watch' );\nexport const watchFile = asyncMethod( 'watchFile' );\n\n// standard sync methods\nexport const chmodSync = syncMethod( 'chmodSync' );\nexport const chownSync = syncMethod( 'chownSync' );\nexport const lchmodSync = syncMethod( 'lchmodSync' );\nexport const lchownSync = syncMethod( 'lchownSync' );\nexport const lstatSync = syncMethod( 'lstatSync' );\nexport const readdirSync = syncMethod( 'readdirSync' );\nexport const readFileSync = syncMethod( 'readFileSync' );\nexport const readlinkSync = syncMethod( 'readlinkSync' );\nexport const realpathSync = syncMethod( 'realpathSync' );\nexport const rmdirSync = syncMethod( 'rmdirSync' );\nexport const statSync = syncMethod( 'statSync' );\nexport const truncateSync = syncMethod( 'truncateSync' );\nexport const unlinkSync = syncMethod( 'unlinkSync' );\nexport const utimesSync = syncMethod( 'utimesSync' );\n\n// file descriptor async methods\nexport const close = asyncFileDescriptorMethod( 'close' );\nexport const fchmod = asyncFileDescriptorMethod( 'fchmod' );\nexport const fchown = asyncFileDescriptorMethod( 'fchown' );\nexport const fstat = asyncFileDescriptorMethod( 'fstat' );\nexport const fsync = asyncFileDescriptorMethod( 'fsync' );\nexport const ftruncate = asyncFileDescriptorMethod( 'ftruncate' );\nexport const futimes = asyncFileDescriptorMethod( 'futimes' );\nexport const read = asyncFileDescriptorMethod( 'read' );\n\n// file descriptor sync methods\nexport const closeSync = fs.closeSync;\nexport const fchmodSync = fs.fchmodSync;\nexport const fchownSync = fs.fchownSync;\nexport const fstatSync = fs.fstatSync;\nexport const fsyncSync = fs.fsyncSync;\nexport const ftruncateSync = fs.ftruncateSync;\nexport const futimesSync = fs.futimesSync;\nexport const readSync = fs.readSync;\n\n// special methods\nexport { createReadStream, createWriteStream } from './specialMethods/createReadStream-createWriteStream'; // TODO aren't these covered by the standard methods?\nexport { exists, existsSync } from './specialMethods/exists';\nexport { link, linkSync, rename, renameSync } from './specialMethods/link-rename';\nexport { mkdir, mkdirSync } from './specialMethods/mkdir';\nexport { open, openSync } from './specialMethods/open';\nexport { symlink, symlinkSync } from './specialMethods/symlink';\nexport { writeFile, writeFileSync, appendFile, appendFileSync } from './specialMethods/writeFile-appendFile';\n\n// extra methods\nexport { copydir, copydirSync } from './extraMethods/copydir';\nexport { copyFile, copyFileSync } from './extraMethods/copyFile';\nexport { lsr, lsrSync } from './extraMethods/lsr';\nexport { rimraf, rimrafSync } from './extraMethods/rimraf';\nexport { symlinkOrCopy, symlinkOrCopySync } from './extraMethods/symlinkOrCopy';\n\n// expose Promise for convenience\n// https://github.com/esperantojs/esperanto/issues/161\nexport const Promise = es6Promise.Promise;","import { stat, statSync } from '../sander';\nimport { copydir, copydirSync } from './copydir';\nimport { copyFile, copyFileSync } from './copyFile';\nimport { symlink, symlinkSync } from '../specialMethods/symlink';\nimport resolvePathAndOptions from '../utils/resolvePathAndOptions';\n\nconst isWindows = process.platform === 'win32';\n\nexport function symlinkOrCopy () {\n\tif ( isWindows ) {\n\t\tconst { resolvedPath: src, options: readOptions } = resolvePathAndOptions( arguments );\n\n\t\tlet copyDirOrFileTo = stat( src )\n\t\t\t.then( stats => {\n\t\t\t\treturn ( stats.isDirectory() ? copydir : copyFile )\n\t\t\t\t\t.apply( null, arguments )\n\t\t\t\t\t.to;\n\t\t\t});\n\n\t\treturn {\n\t\t\tto () {\n\t\t\t\treturn copyDirOrFileTo\n\t\t\t\t\t.then(fn => {\n\t\t\t\t\t\treturn fn.apply(null, arguments);\n\t\t\t\t\t});\n\t\t\t}\n\t\t};\n\t}\n\n\treturn symlink.apply( null, arguments );\n}\n\nexport function symlinkOrCopySync () {\n\tif ( isWindows ) {\n\t\tconst { resolvedPath: src, options: readOptions } = resolvePathAndOptions( arguments );\n\t\treturn ( statSync( src ).isDirectory() ? copydirSync : copyFileSync ).apply( null, arguments );\n\t}\n\n\treturn symlinkSync.apply( null, arguments );\n}","import _rimraf from 'rimraf';\nimport resolvePath from '../utils/resolvePath';\n\nexport function rimraf () {\n\tconst target = resolvePath( arguments );\n\n\treturn new Promise( ( fulfil, reject ) => {\n\t\t_rimraf( target, err => {\n\t\t\tif ( err ) {\n\t\t\t\treject( err );\n\t\t\t} else {\n\t\t\t\tfulfil();\n\t\t\t}\n\t\t});\n\t});\n}\n\nexport function rimrafSync () {\n\t_rimraf.sync( resolvePath( arguments ) );\n}","import * as fs from 'fs';\nimport { resolve, sep } from 'path';\nimport resolvePath from '../utils/resolvePath';\n\nfunction walk ( dir, callback ) {\n\tlet results = [];\n\n\tfs.readdir( dir, ( err, files ) => {\n\t\tif ( err ) return callback( err );\n\n\t\tlet pending = files.length;\n\t\tif ( !pending ) return callback( null, results );\n\n\t\tfiles.forEach( file => {\n\t\t\tfile = resolve( dir, file );\n\n\t\t\tfs.stat( file, ( err, stats ) => {\n\t\t\t\tif ( stats && stats.isDirectory() ) {\n\t\t\t\t\twalk( file, ( err, res ) => {\n\t\t\t\t\t\tresults = results.concat( res );\n\t\t\t\t\t\tif ( !--pending ) callback( null, results );\n\t\t\t\t\t});\n\t\t\t\t} else {\n\t\t\t\t\tresults.push( file );\n\t\t\t\t\tif ( !--pending ) callback( null, results );\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t});\n};\n\nexport function lsr () {\n\tconst basedir = resolvePath( arguments );\n\n\treturn new Promise( ( fulfil, reject ) => {\n\t\twalk( basedir, function ( err, result ) {\n\t\t\tif ( err ) return reject( err );\n\n\t\t\t// files should be relative to basedir\n\t\t\tconst index = basedir.length + 1;\n\t\t\tlet i = result.length;\n\t\t\twhile ( i-- ) {\n\t\t\t\tresult[i] = result[i].substring( index );\n\t\t\t}\n\n\t\t\tfulfil( result );\n\t\t});\n\t});\n}\n\nexport function lsrSync () {\n\tconst basedir = resolvePath( arguments );\n\n\tlet result = [];\n\n\tfunction processdir ( dir ) {\n\t\tfs.readdirSync( dir ).forEach( file => {\n\t\t\tconst filepath = dir + sep + file;\n\n\t\t\tif ( fs.statSync( filepath ).isDirectory() ) {\n\t\t\t\tprocessdir( filepath );\n\t\t\t} else {\n\t\t\t\tresult.push( filepath.replace( basedir + sep, '' ) );\n\t\t\t}\n\t\t});\n\t}\n\n\tprocessdir( basedir );\n\treturn result;\n}","import * as fs from 'graceful-fs';\nimport { dirname } from 'path';\nimport mkdirp from 'mkdirp';\nimport resolvePathAndOptions from '../utils/resolvePathAndOptions';\n\nexport function copyFile () {\n\tconst { resolvedPath: src, options: readOptions } = resolvePathAndOptions( arguments );\n\n\treturn {\n\t\tto () {\n\t\t\tconst { resolvedPath: dest, options: writeOptions } = resolvePathAndOptions( arguments );\n\n\t\t\treturn new Promise( ( fulfil, reject ) => {\n\t\t\t\tmkdirp( dirname( dest ), err => {\n\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\treject( err );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tconst readStream = fs.createReadStream( src, readOptions );\n\t\t\t\t\t\tconst writeStream = fs.createWriteStream( dest, writeOptions );\n\n\t\t\t\t\t\treadStream.on( 'error', reject );\n\t\t\t\t\t\twriteStream.on( 'error', reject );\n\n\t\t\t\t\t\twriteStream.on( 'close', fulfil );\n\n\t\t\t\t\t\treadStream.pipe( writeStream );\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t};\n}\n\nexport function copyFileSync () {\n\tconst { resolvedPath: src, options: readOptions } = resolvePathAndOptions( arguments );\n\n\treturn {\n\t\tto () {\n\t\t\tconst { resolvedPath: dest, options: writeOptions } = resolvePathAndOptions( arguments );\n\n\t\t\tconst data = fs.readFileSync( src, readOptions );\n\n\t\t\tmkdirp.sync( dirname( dest ) );\n\t\t\tfs.writeFileSync( dest, data, writeOptions );\n\t\t}\n\t};\n}","import { sep } from 'path';\nimport * as fs from 'graceful-fs';\nimport mkdirp from 'mkdirp';\nimport resolvePathAndOptions from '../utils/resolvePathAndOptions';\n\nexport function copydir () {\n\tconst { resolvedPath: src, options: readOptions } = resolvePathAndOptions( arguments );\n\n\treturn {\n\t\tto () {\n\t\t\tconst { resolvedPath: dest, options: writeOptions } = resolvePathAndOptions( arguments );\n\n\t\t\tfunction copydir ( src, dest, cb ) {\n\t\t\t\tmkdirp( dest, err => {\n\t\t\t\t\tif ( err ) return cb( err );\n\n\t\t\t\t\tfs.readdir( src, ( err, files ) => {\n\t\t\t\t\t\tif ( err ) return cb( err );\n\n\t\t\t\t\t\tlet remaining = files.length;\n\n\t\t\t\t\t\tif ( !remaining ) return cb();\n\n\t\t\t\t\t\tfunction check ( err ) {\n\t\t\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\t\t\treturn cb( err );\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ( !--remaining ) {\n\t\t\t\t\t\t\t\tcb();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfiles.forEach( function ( filename ) {\n\t\t\t\t\t\t\tconst srcpath = src + sep + filename;\n\t\t\t\t\t\t\tconst destpath = dest + sep + filename;\n\n\t\t\t\t\t\t\tfs.stat( srcpath, ( err, stats ) => {\n\t\t\t\t\t\t\t\tvar readStream, writeStream;\n\n\t\t\t\t\t\t\t\tif ( stats.isDirectory() ) {\n\t\t\t\t\t\t\t\t\treturn copydir( srcpath, destpath, check );\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\treadStream = fs.createReadStream( srcpath, readOptions );\n\t\t\t\t\t\t\t\twriteStream = fs.createWriteStream( destpath, writeOptions );\n\n\t\t\t\t\t\t\t\treadStream.on( 'error', cb );\n\t\t\t\t\t\t\t\twriteStream.on( 'error', cb );\n\n\t\t\t\t\t\t\t\twriteStream.on( 'close', check );\n\n\t\t\t\t\t\t\t\treadStream.pipe( writeStream );\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t});\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\n\t\t\treturn new Promise( ( fulfil, reject ) => {\n\t\t\t\tcopydir( src, dest, err => {\n\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\treject( err );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfulfil();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t};\n}\n\nexport function copydirSync () {\n\tconst { resolvedPath: src, options: readOptions } = resolvePathAndOptions( arguments );\n\n\treturn {\n\t\tto () {\n\t\t\tconst { resolvedPath: dest, options: writeOptions } = resolvePathAndOptions( arguments );\n\n\t\t\tfunction copydir ( src, dest ) {\n\t\t\t\tmkdirp.sync( dest );\n\n\t\t\t\tfs.readdirSync( src ).forEach( filename => {\n\t\t\t\t\tconst srcpath = src + sep + filename;\n\t\t\t\t\tconst destpath = dest + sep + filename;\n\n\t\t\t\t\tif ( fs.statSync( srcpath ).isDirectory() ) {\n\t\t\t\t\t\treturn copydir( srcpath, destpath );\n\t\t\t\t\t}\n\n\t\t\t\t\tconst data = fs.readFileSync( srcpath, readOptions );\n\t\t\t\t\tfs.writeFileSync( destpath, data, writeOptions );\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tcopydir( src, dest );\n\t\t}\n\t};\n}","import * as fs from 'graceful-fs';\nimport { dirname } from 'path';\nimport mkdirp from 'mkdirp';\nimport resolvePath from '../utils/resolvePath';\n\nexport const writeFile = asyncMethod( 'writeFile' );\nexport const appendFile = asyncMethod( 'appendFile' );\n\nexport const writeFileSync = syncMethod( 'writeFileSync' );\nexport const appendFileSync = syncMethod( 'appendFileSync' );\n\nfunction normaliseArguments ( args ) {\n\targs = Array.prototype.slice.call( args, 0 );\n\tlet opts = {};\n\n\tif ( typeof args[ args.length - 1 ] === 'object' && !( args[ args.length - 1 ] instanceof Buffer ) ) {\n\t\topts = args.pop();\n\t}\n\n\treturn { opts, data: args.pop(), dest: resolvePath( args ) };\n}\n\nfunction asyncMethod ( methodName ) {\n\treturn function () {\n\t\tconst { dest, data, opts } = normaliseArguments( arguments );\n\n\t\treturn new Promise( ( fulfil, reject ) => {\n\t\t\tmkdirp( dirname( dest ), err => {\n\t\t\t\tif ( err ) {\n\t\t\t\t\treject( err );\n\t\t\t\t} else {\n\t\t\t\t\tfs[ methodName ]( dest, data, opts, err => {\n\t\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\t\treject( err );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfulfil( data );\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\t};\n}\n\nfunction syncMethod ( methodName ) {\n\treturn function () {\n\t\tconst { dest, data } = normaliseArguments( arguments );\n\n\t\tmkdirp.sync( dirname( dest ) );\n\t\treturn fs[ methodName ]( dest, data );\n\t};\n}\n","import { dirname } from 'path';\nimport * as fs from 'graceful-fs';\nimport mkdirp from 'mkdirp';\nimport resolvePath from '../utils/resolvePath';\nimport resolvePathAndOptions from '../utils/resolvePathAndOptions';\n\nexport function symlink () {\n\tconst src = resolvePath( arguments );\n\n\treturn {\n\t\tto () {\n\t\t\tconst { options, resolvedPath: dest } = resolvePathAndOptions( arguments );\n\n\t\t\treturn new Promise( ( fulfil, reject ) => {\n\t\t\t\tmkdirp( dirname( dest ), err => {\n\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\treject( err );\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfs.symlink( src, dest, options.type, err => {\n\t\t\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\t\t\treject( err );\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tfulfil();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t});\n\t\t}\n\t};\n}\n\nexport function symlinkSync () {\n\tconst src = resolvePath( arguments );\n\n\treturn {\n\t\tto () {\n\t\t\tconst { options, resolvedPath: dest } = resolvePathAndOptions( arguments );\n\t\t\tmkdirp.sync( dirname( dest ) );\n\t\t\treturn fs.symlinkSync( src, dest, options.type );\n\t\t}\n\t};\n}","import { dirname } from 'path';\nimport * as fs from 'graceful-fs';\nimport mkdirp from 'mkdirp';\nimport resolvePath from '../utils/resolvePath';\n\nfunction normaliseArguments ( args ) {\n\tlet options;\n\tlet flags;\n\tlet i;\n\n\tif ( typeof args[ args.length - 1 ] === 'object' ) {\n\t\toptions = args[ args.length - 1 ];\n\t\tflags = args[ args.length - 2 ];\n\t\ti = args.length - 2;\n\t} else {\n\t\toptions = {};\n\t\tflags = args[ args.length - 1 ];\n\t\ti = args.length - 1;\n\t}\n\n\tlet pathargs = new Array( i );\n\twhile ( i-- ) {\n\t\tpathargs[i] = args[i];\n\t}\n\n\tconst resolvedPath = resolvePath( pathargs );\n\n\treturn { resolvedPath, options, flags };\n}\n\nfunction bailIfExists ( src, flags, mode ) {\n\tlet alreadyExists;\n\n\ttry {\n\t\tfs.statSync( src );\n\t\talreadyExists = true;\n\t} catch ( err ) {\n\t\tif ( err.code !== 'ENOENT' ) {\n\t\t\tthrow err;\n\t\t}\n\t}\n\n\tif ( alreadyExists ) {\n\t\t// attempt the operation = that way, we get the intended error message\n\t\t// TODO can't we just do this in the first place?\n\t\tfs.openSync( src, flags, mode );\n\t}\n}\n\nexport function open () {\n\tconst { resolvedPath: src, options, flags } = normaliseArguments( arguments );\n\n\tif ( /^.x/.test( flags ) ) {\n\t\tbailIfExists( src, flags, options.mode );\n\t}\n\n\treturn new Promise( ( fulfil, reject ) => {\n\t\tfunction open () {\n\t\t\tfs.open( src, flags, options.mode, ( err, fd ) => {\n\t\t\t\tif ( err ) {\n\t\t\t\t\treject( err );\n\t\t\t\t} else {\n\t\t\t\t\tfulfil( fd );\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\t// create dirs if necessary\n\t\tif ( /^[wa]/.test( flags ) ) {\n\t\t\tmkdirp( dirname( src ), err => {\n\t\t\t\tif ( err ) {\n\t\t\t\t\treject( err );\n\t\t\t\t} else {\n\t\t\t\t\topen();\n\t\t\t\t}\n\t\t\t});\n\t\t} else {\n\t\t\topen();\n\t\t}\n\t});\n}\n\n\nexport function openSync () {\n\tconst { resolvedPath: src, options, flags } = normaliseArguments( arguments );\n\n\tif ( /^.x/.test( flags ) ) {\n\t\tbailIfExists( src, flags, options.mode );\n\t}\n\n\t// create dirs if necessary\n\tif ( /^[wa]/.test( flags ) ) {\n\t\tmkdirp.sync( dirname( src ) );\n\t}\n\n\treturn fs.openSync( src, flags, options.mode );\n}","import mkdirp from 'mkdirp';\nimport resolvePath from '../utils/resolvePath';\n\nexport function mkdir () {\n\tconst dir = resolvePath( arguments );\n\n\treturn new Promise( ( fulfil, reject ) => {\n\t\tmkdirp( dir, err => {\n\t\t\tif ( err ) {\n\t\t\t\treject( err );\n\t\t\t} else {\n\t\t\t\tfulfil();\n\t\t\t}\n\t\t});\n\t});\n}\n\nexport function mkdirSync () {\n\tconst dir = resolvePath( arguments );\n\tmkdirp.sync( dir );\n}","import * as fs from 'graceful-fs';\nimport { dirname } from 'path';\nimport mkdirp from 'mkdirp';\nimport resolvePath from '../utils/resolvePath';\n\nexport const rename = asyncMethod( 'rename' );\nexport const link = asyncMethod( 'link' );\n\nexport const renameSync = syncMethod( 'renameSync' );\nexport const linkSync = syncMethod( 'linkSync' );\n\nfunction asyncMethod ( methodName ) {\n\treturn function () {\n\t\tconst src = resolvePath( arguments );\n\n\t\treturn {\n\t\t\tto () {\n\t\t\t\tconst dest = resolvePath( arguments );\n\n\t\t\t\treturn new Promise( ( fulfil, reject ) => {\n\t\t\t\t\tmkdirp( dirname( dest ), err => {\n\t\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\t\treject( err );\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfs[ methodName ]( src, dest, err => {\n\t\t\t\t\t\t\t\tif ( err ) {\n\t\t\t\t\t\t\t\t\treject( err );\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tfulfil();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t});\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t});\n\t\t\t}\n\t\t};\n\t};\n}\n\nfunction syncMethod ( methodName ) {\n\treturn function () {\n\t\tconst src = resolvePath( arguments );\n\n\t\treturn {\n\t\t\tto () {\n\t\t\t\tconst dest = resolvePath( arguments );\n\n\t\t\t\tmkdirp.sync( dirname( dest ) );\n\t\t\t\treturn fs[ methodName ]( src, dest );\n\t\t\t}\n\t\t};\n\t};\n}","import * as fs from 'graceful-fs';\nimport resolvePath from '../utils/resolvePath';\n\nexport function exists () {\n\tconst target = resolvePath( arguments );\n\n\treturn new Promise( fulfil => {\n\t\tfs.exists( target, exists => fulfil( exists ) );\n\t});\n}\n\nexport function existsSync () {\n\treturn fs.existsSync( resolvePath( arguments ) );\n}","import * as fs from 'graceful-fs';\nimport { dirname } from 'path';\nimport mkdirp from 'mkdirp';\nimport resolvePathAndOptions from '../utils/resolvePathAndOptions';\n\nexport function createReadStream () {\n\tconst { resolvedPath, options } = resolvePathAndOptions( arguments );\n\treturn fs.createReadStream( resolvedPath, options );\n}\n\nexport function createWriteStream () {\n\tconst { resolvedPath, options } = resolvePathAndOptions( arguments );\n\n\tmkdirp.sync( dirname( resolvedPath ) );\n\treturn fs.createWriteStream( resolvedPath, options );\n}","import { resolve } from 'path';\n\nexport default function resolvePathAndOptions ( args ) {\n\tlet options;\n\tlet pathargs;\n\n\tif ( typeof args[ args.length - 1 ] === 'object' ) {\n\t\toptions = args[ args.length - 1 ];\n\n\t\tlet i = args.length - 1;\n\t\tpathargs = new Array( i );\n\n\t\twhile ( i-- ) {\n\t\t\tpathargs[i] = args[i];\n\t\t}\n\t} else {\n\t\toptions = {};\n\t\tpathargs = args;\n\t}\n\n\tconst resolvedPath = resolve.apply( null, pathargs );\n\n\treturn { options, resolvedPath };\n}","import * as fs from 'graceful-fs';\n\nexport function asyncFileDescriptorMethod ( methodName ) {\n\treturn function () {\n\t\tlet args = [];\n\t\tlet i = arguments.length;\n\n\t\twhile ( i-- ) {\n\t\t\targs[i] = arguments[i];\n\t\t}\n\n\t\treturn new Promise( ( fulfil, reject ) => {\n\t\t\targs.push( ( err, result ) => {\n\t\t\t\tif ( err ) {\n\t\t\t\t\treject( err );\n\t\t\t\t} else {\n\t\t\t\t\tfulfil( result );\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfs[ methodName ].apply( fs, args );\n\t\t});\n\t};\n}","import * as fs from 'graceful-fs';\nimport resolvePath from '../utils/resolvePath';\n\nfunction normaliseArguments ( args ) {\n\tconst len = args.length;\n\n\tlet buildingPath = true;\n\tlet pathargs = [];\n\tlet normalised = [ null ]; // null is a placeholder for the resolved path\n\tlet i;\n\n\tfor ( i = 0; i < len; i += 1 ) {\n\t\tif ( buildingPath && typeof args[i] === 'string' ) {\n\t\t\tpathargs[i] = args[i];\n\t\t} else {\n\t\t\tbuildingPath = false;\n\t\t\tnormalised.push( args[i] );\n\t\t}\n\t}\n\n\tnormalised[0] = resolvePath( pathargs );\n\n\treturn normalised;\n}\n\nexport function asyncMethod ( methodName ) {\n\treturn function () {\n\t\tconst args = normaliseArguments( arguments );\n\n\t\treturn new Promise( ( fulfil, reject ) => {\n\t\t\targs.push( ( err, result ) => {\n\t\t\t\tif ( err ) {\n\t\t\t\t\treject( err );\n\t\t\t\t} else {\n\t\t\t\t\tfulfil( result );\n\t\t\t\t}\n\t\t\t});\n\n\t\t\tfs[ methodName ].apply( fs, args );\n\t\t});\n\t};\n}\n\nexport function syncMethod ( methodName ) {\n\treturn function () {\n\t\tconst args = normaliseArguments( arguments );\n\t\treturn fs[ methodName ].apply( fs, args );\n\t};\n}","import { resolve } from 'path';\n\nexport default function resolvePath ( args ) {\n\treturn resolve.apply( null, args );\n}"],"names":[],"mappings":";;;;;;;AgBEe,SAAS,WAAW,CAAG,IAAI,EAAG;QACrC,OAAO,CAAC,KAAK,CAAE,IAAI,EAAE,IAAI,CAAE;;;ADAnC,SAAS,kBAAkB,CAAG,IAAI,EAAG;KAC9B,GAAG,GAAG,IAAI,CAAC,MAAM;;KAEnB,YAAY,GAAG,IAAI;KACnB,QAAQ,GAAG,EAAE;KACb,UAAU,GAAG,CAAE,IAAI,CAAE,CAAC;KACtB,CAAC,YAAA;;MAEC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,EAAG;MACzB,YAAY,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,EAAG;WAC1C,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC;G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