mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-09-11 19:17:09 +03:00
revert to fs.existsSync
This commit is contained in:
parent
09931c77e4
commit
84117cc96c
@ -23,12 +23,7 @@ describe('ImageEditorStatusView', () => {
|
||||
|
||||
for (let i = 0; i < projectDirectories.length; i++) {
|
||||
let possibleProjectDir = projectDirectories[i].resolve('binary-file.png');
|
||||
let isProjectDir = false;
|
||||
try {
|
||||
fs.statSync(possibleProjectDir);
|
||||
isProjectDir = true;
|
||||
} catch (e) {}
|
||||
if (isProjectDir) {
|
||||
if (fs.existsSync(possibleProjectDir)) {
|
||||
filePath = projectDirectories[i].resolve('binary-file.png');
|
||||
filePath2 = projectDirectories[i].resolve('binary-file-2.png');
|
||||
}
|
||||
|
@ -24,12 +24,7 @@ describe('ImageEditorView', () => {
|
||||
|
||||
for (let i = 0; i < projectDirectories.length; i++) {
|
||||
let possibleProjectDir = projectDirectories[i].resolve('binary-file.png');
|
||||
let isProjectDir = false;
|
||||
try {
|
||||
fs.statSync(possibleProjectDir);
|
||||
isProjectDir = true;
|
||||
} catch (e) {}
|
||||
if (isProjectDir) {
|
||||
if (fs.existsSync(possibleProjectDir)) {
|
||||
filePath = projectDirectories[i].resolve('binary-file.png');
|
||||
filePath2 = projectDirectories[i].resolve('binary-file-2.png');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user