Merge branch 'master' of github.com:bytedo/iofs into master
						commit
						724e49c949
					
				
							
								
								
									
										7
									
								
								index.js
								
								
								
								
							
							
						
						
									
										7
									
								
								index.js
								
								
								
								
							|  | @ -21,10 +21,7 @@ class Stats { | |||
|   } | ||||
| } | ||||
| 
 | ||||
| const VERSION = +process.versions.node | ||||
|   .split('.') | ||||
|   .slice(0, 2) | ||||
|   .join('.') | ||||
| const VERSION = +process.versions.node.split('.').slice(0, 2).join('.') | ||||
| 
 | ||||
| const EMPTY_STAT = new Stats() | ||||
| 
 | ||||
|  | @ -288,7 +285,7 @@ const Iofs = { | |||
|    * @param  {String} file [目标路径] | ||||
|    */ | ||||
|   exists(file) { | ||||
|     return this.is(file, FS.constants.R_OK) | ||||
|     return this.is(file, FS.constants.F_OK) | ||||
|   }, | ||||
| 
 | ||||
|   // 是否可读写
 | ||||
|  |  | |||
|  | @ -21,10 +21,7 @@ class STATS { | |||
|   } | ||||
| } | ||||
| 
 | ||||
| const VERSION = +process.versions.node | ||||
|   .split('.') | ||||
|   .slice(0, 2) | ||||
|   .join('.') | ||||
| const VERSION = +process.versions.node.split('.').slice(0, 2).join('.') | ||||
| 
 | ||||
| const EMPTY_STAT = new STATS() | ||||
| 
 | ||||
|  | @ -288,7 +285,7 @@ export default { | |||
|    * @param  {String} file [目标路径] | ||||
|    */ | ||||
|   exists(file) { | ||||
|     return this.is(file, FS.constants.R_OK) | ||||
|     return this.is(file, FS.constants.F_OK) | ||||
|   }, | ||||
| 
 | ||||
|   // 是否可读写
 | ||||
|  |  | |||
|  | @ -7,7 +7,13 @@ | |||
|     "type": "git", | ||||
|     "url": "https://github.com/bytedo/iofs.git" | ||||
|   }, | ||||
|   "keywords": ["fivejs", "fs", "iofs", "fs.io", "file"], | ||||
|   "keywords": [ | ||||
|     "fivejs", | ||||
|     "fs", | ||||
|     "iofs", | ||||
|     "fs.io", | ||||
|     "file" | ||||
|   ], | ||||
|   "author": "yutent", | ||||
|   "license": "MIT" | ||||
| } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue