Skip to content

Commit 1d3d264

Browse files
committed
iterate
1 parent a4d6824 commit 1d3d264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

jupyter_drives/manager.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -327,14 +327,14 @@ async def new_file(self, drive_name, path, type):
327327
# in the case of S3 directories, we need to add a suffix to feign the creation of a directory
328328
if type == 'directory' and self._config.provider == 's3':
329329
object_name = object_name + self._fixDir_suffix
330-
330+
331331
await self._file_system._touch(object_name)
332-
metadata = await self._file_system._info(drive_name + '/' + path)
332+
metadata = await self._file_system._info(object_name)
333333

334334
data = {
335335
"path": path,
336336
"content": "",
337-
"last_modified": metadata["LastModified"].isoformat() if metadata["type"]=='file' else datetime.now().isoformat(),
337+
"last_modified": metadata["LastModified"].isoformat(),
338338
"size": metadata["size"],
339339
"type": metadata["type"]
340340
}

0 commit comments

Comments
 (0)