Aenderungen an fm eingebaut
| | |
| | | import de.uhilger.neon.FileServer; |
| | | import de.uhilger.neon.HttpHelper; |
| | | import de.uhilger.neon.HttpResponder; |
| | | import de.uhilger.fm.Lister; |
| | | import de.uhilger.fm.Catalog; |
| | | import java.io.IOException; |
| | | |
| | | /** |
| | |
| | | } else { |
| | | String fName = new HttpHelper().getFileName(exchange); |
| | | if (fName.endsWith(FileServer.STR_SLASH)) { // Ordnerliste erzeugen |
| | | String json = new Lister().liste(fName, ctx.getPath(), base); |
| | | String json = new Catalog().list(fName, ctx.getPath(), base); |
| | | if (null != json) { |
| | | new HttpResponder().antwortSenden(exchange, HttpResponder.SC_OK, json); |
| | | } else { |
| | |
| | | switch (params[0]) { |
| | | case P_RENAME: |
| | | h.inspectFileName(params[1]); |
| | | String neuerDateiName = new Renamer().umbenennen(fileName, params[1], file); |
| | | String neuerDateiName = new Renamer().rename(/*fileName, */params[1], file); |
| | | antwort(exchange, HttpResponder.SC_OK, neuerDateiName); |
| | | break; |
| | | case P_COPY: |