public class NewFile
extends java.lang.Object
Requires a "new" entry in data map. If url ends in "/", a new folder will be created, otherwise a new file will be created.
If a file will be created, the user can use a template provided in the "template"
entry in the data map, which should be inside the OnBotJavaFileSystemUtils#templatesDir folder. If
the user specifies no template, a default template will be used based on the file
extension.
See buildTemplateKeyMap(String, Map, File) for details regarding additional
data entries for template use
| Constructor and Description |
|---|
NewFile() |
| Modifier and Type | Method and Description |
|---|---|
NanoHTTPD.Response |
getResponse(NanoHTTPD.IHTTPSession session) |
public NanoHTTPD.Response getResponse(NanoHTTPD.IHTTPSession session)