Details
-
Type:
Feature Request
-
Status: Open (View Workflow)
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
Importer
from(String)
from(new File(String))
from(File)
File.isFile -> LookupImporterType -> ZipImporter
File.isDirectory -> ExplodedImporter
from(URL)
URL.getFile.isDirectory -> ExplodedImporter
URL.getExtension -> LookupImporterType -> ZipImporter
Let's discuss on forum:
Why interpret String as new File() ?
Why assume a URL is local and can be represented as a File?
In an attempt to add user-friendly hooks I fear we become too opinionated at best and unpredictable at worst.