diff options
Diffstat (limited to 'src/com')
-rw-r--r-- | src/com/itmill/toolkit/service/FileTypeResolver.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/com/itmill/toolkit/service/FileTypeResolver.java b/src/com/itmill/toolkit/service/FileTypeResolver.java index 79aadf899f..277e432749 100644 --- a/src/com/itmill/toolkit/service/FileTypeResolver.java +++ b/src/com/itmill/toolkit/service/FileTypeResolver.java @@ -315,14 +315,14 @@ public class FileTypeResolver { throw new NullPointerException("File can not be null"); } - // Drives - if (file.getParentFile() == null) { - return "inode/drive"; - } - // Directories if (file.isDirectory()) { - return "inode/directory"; + // Drives + if (file.getParentFile() == null) { + return "inode/drive"; + } else { + return "inode/directory"; + } } // Return type from extension |