File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/com/magento/idea/magento2plugin/util/magento Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 10
10
import com .intellij .openapi .vfs .VfsUtil ;
11
11
import com .intellij .openapi .vfs .VirtualFile ;
12
12
import com .magento .idea .magento2plugin .magento .packages .Package ;
13
- import java .io .File ;
14
13
import java .util .Arrays ;
15
14
import org .jetbrains .annotations .NotNull ;
16
15
@@ -29,15 +28,17 @@ public static boolean isMagentoFolderValid(final String path) {
29
28
return false ;
30
29
}
31
30
final VirtualFile file = LocalFileSystem .getInstance ().findFileByPath (path );
31
+
32
32
if (file != null && file .isDirectory ()) {
33
33
return VfsUtil .findRelativeFile (
34
34
file ,
35
- Package .frameworkRootComposer .split (File . separator )
35
+ Package .frameworkRootComposer .split (Package . V_FILE_SEPARATOR )
36
36
) != null
37
37
|| VfsUtil .findRelativeFile (
38
38
file ,
39
- Package .frameworkRootGit .split (File . separator )) != null ;
39
+ Package .frameworkRootGit .split (Package . V_FILE_SEPARATOR )) != null ;
40
40
}
41
+
41
42
return false ;
42
43
}
43
44
You can’t perform that action at this time.
0 commit comments