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 1010import com .intellij .openapi .vfs .VfsUtil ;
1111import com .intellij .openapi .vfs .VirtualFile ;
1212import com .magento .idea .magento2plugin .magento .packages .Package ;
13- import java .io .File ;
1413import java .util .Arrays ;
1514import org .jetbrains .annotations .NotNull ;
1615
@@ -29,15 +28,17 @@ public static boolean isMagentoFolderValid(final String path) {
2928 return false ;
3029 }
3130 final VirtualFile file = LocalFileSystem .getInstance ().findFileByPath (path );
31+
3232 if (file != null && file .isDirectory ()) {
3333 return VfsUtil .findRelativeFile (
3434 file ,
35- Package .frameworkRootComposer .split (File . separator )
35+ Package .frameworkRootComposer .split (Package . V_FILE_SEPARATOR )
3636 ) != null
3737 || VfsUtil .findRelativeFile (
3838 file ,
39- Package .frameworkRootGit .split (File . separator )) != null ;
39+ Package .frameworkRootGit .split (Package . V_FILE_SEPARATOR )) != null ;
4040 }
41+
4142 return false ;
4243 }
4344
You can’t perform that action at this time.
0 commit comments