use os path to create full_dir bug fix
@@ -664,7 +664,7 @@ def add_resource_files(pk, *files, **kwargs):
dir_name = os.path.dirname(full_path)
base_dir = full_dir if full_dir is not None else ''
dir_name = dir_name if dir_name is not None else ''
- full_dir = base_dir + dir_name
+ full_dir = os.path.join(base_dir, dir_name)
if full_dir:
new_folders.add(full_dir)
ret.append(utils.add_file_to_resource(resource, f, folder=full_dir))
