From 822ddf5649666248df1c7436d237e50fd79646dc Mon Sep 17 00:00:00 2001
From: ulrich
Date: Tue, 06 Apr 2021 15:09:37 +0000
Subject: [PATCH] Katalog (in Arbeit)

---
 src/de/uhilger/mediaz/store/StorageFile.java   |    4 ++++
 src/de/uhilger/mediaz/api/ListFileHandler.java |    4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/de/uhilger/mediaz/api/ListFileHandler.java b/src/de/uhilger/mediaz/api/ListFileHandler.java
index 5be132b..f04db2b 100644
--- a/src/de/uhilger/mediaz/api/ListFileHandler.java
+++ b/src/de/uhilger/mediaz/api/ListFileHandler.java
@@ -44,9 +44,9 @@
           StorageFile sf = new StorageFile();
           sf.setName(file.getName());
           if(file.isDirectory()) {
-            sf.setTyp("folder");
+            sf.setTyp(StorageFile.TYP_FOLDER);
           } else {
-            sf.setTyp("file");
+            sf.setTyp(StorageFile.TYP_FILE);
           }
           list.add(sf);
         }
diff --git a/src/de/uhilger/mediaz/store/StorageFile.java b/src/de/uhilger/mediaz/store/StorageFile.java
index 07d2d2b..d62df2f 100644
--- a/src/de/uhilger/mediaz/store/StorageFile.java
+++ b/src/de/uhilger/mediaz/store/StorageFile.java
@@ -10,6 +10,10 @@
  * @author ulrich
  */
 public class StorageFile {
+  
+  public static final String TYP_FOLDER = "folder";
+  public static final String TYP_FILE = "file";
+  
   private String name;
   private String typ;
 

--
Gitblit v1.9.3