|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 13 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
263 bytes
|
| Line | |
|---|
| 1 | 'use strict'
|
|---|
| 2 | const u = require('universalify').fromPromise
|
|---|
| 3 | const fs = require('../fs')
|
|---|
| 4 |
|
|---|
| 5 | function pathExists (path) {
|
|---|
| 6 | return fs.access(path).then(() => true).catch(() => false)
|
|---|
| 7 | }
|
|---|
| 8 |
|
|---|
| 9 | module.exports = {
|
|---|
| 10 | pathExists: u(pathExists),
|
|---|
| 11 | pathExistsSync: fs.existsSync
|
|---|
| 12 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.