diff --git a/cybertools/storage/filesystem.py b/cybertools/storage/filesystem.py index 98128ee..04e4c55 100644 --- a/cybertools/storage/filesystem.py +++ b/cybertools/storage/filesystem.py @@ -28,13 +28,14 @@ class FileSystemStorage(object): self.subDir = subDir def getDir(self, address, subDir=None): + if isinstance(address, bytes): + address = address.decode('UTF-8') subDir = subDir or self.subDir - subDir = str(subDir) if self.rootDir is None: if subDir: return os.path.join(subDir, address) return address - return os.path.join(str(self.rootDir), subDir, address) + return os.path.join(self.rootDir, subDir, address) def setData(self, address, data, params={}): subDir = params.get('subdirectory')