| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | /* | 
					
						
							|  |  |  | 	MIT License http://www.opensource.org/licenses/mit-license.php
 | 
					
						
							|  |  |  | 	Author Tobias Koppers @sokra | 
					
						
							|  |  |  | */ | 
					
						
							| 
									
										
										
										
											2018-07-30 23:08:51 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-11 20:07:39 +08:00
										 |  |  | "use strict"; | 
					
						
							| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-11 20:07:39 +08:00
										 |  |  | const fs = require("fs"); | 
					
						
							|  |  |  | const mkdirp = require("mkdirp"); | 
					
						
							| 
									
										
										
										
											2018-07-30 23:08:51 +08:00
										 |  |  | const path = require("path"); | 
					
						
							| 
									
										
										
										
											2017-01-11 20:07:39 +08:00
										 |  |  | 
 | 
					
						
							|  |  |  | class NodeOutputFileSystem { | 
					
						
							|  |  |  | 	constructor() { | 
					
						
							|  |  |  | 		this.mkdirp = mkdirp; | 
					
						
							|  |  |  | 		this.mkdir = fs.mkdir.bind(fs); | 
					
						
							|  |  |  | 		this.rmdir = fs.rmdir.bind(fs); | 
					
						
							|  |  |  | 		this.unlink = fs.unlink.bind(fs); | 
					
						
							|  |  |  | 		this.writeFile = fs.writeFile.bind(fs); | 
					
						
							|  |  |  | 		this.join = path.join.bind(path); | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | } | 
					
						
							| 
									
										
										
										
											2013-01-31 01:49:25 +08:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-01-11 20:07:39 +08:00
										 |  |  | module.exports = NodeOutputFileSystem; |