| | |
| | | import static de.uhilger.filecms.api.FileMgr.HOME_DIR_PATH; |
| | | import static de.uhilger.filecms.api.FileMgr.PUB_DIR_NAME; |
| | | import static de.uhilger.filecms.api.FileMgr.PUB_DIR_PATH; |
| | | import de.uhilger.filecms.data.FileRef; |
| | | import de.uhilger.filecms.web.Initialiser; |
| | | import de.uhilger.filesystem.FileRef; |
| | | import java.io.File; |
| | | import java.io.IOException; |
| | | import java.io.InputStream; |
| | | import java.security.Principal; |
| | | import java.util.Enumeration; |
| | | import java.util.Iterator; |
| | | import java.util.List; |
| | | import java.util.logging.Level; |
| | |
| | | private FileRef getBase() { |
| | | FileRef base = null; |
| | | Object o = getServletContext().getAttribute(Initialiser.FILE_BASE); |
| | | if (o instanceof FileRef) { |
| | | base = (FileRef) o; |
| | | if(o instanceof String) { |
| | | String baseStr = (String) o; |
| | | logger.fine(baseStr); |
| | | File file = new File(baseStr); |
| | | base = new FileRef(file.getAbsolutePath(), file.isDirectory()); |
| | | } |
| | | return base; |
| | | } |