(
String parent,
String name,
CallbackContext callback
)
| 635 | } |
| 636 | |
| 637 | private void createFile( |
| 638 | String parent, |
| 639 | String name, |
| 640 | CallbackContext callback |
| 641 | ) { |
| 642 | String mimeType = URLConnection.guessContentTypeFromName(name); |
| 643 | String ext = FilenameUtils.getExtension(name); |
| 644 | |
| 645 | if (mimeType == null && ext != null) mimeType = "text/" + ext; |
| 646 | else mimeType = "text/plain"; |
| 647 | |
| 648 | create(parent, name, mimeType, callback); |
| 649 | } |
| 650 | |
| 651 | private void create( |
| 652 | String parent, |
no test coverage detected