Skip to content

Commit 50f3a12

Browse files
committed
update comments
1 parent 38b9d57 commit 50f3a12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jupyter_drives/manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ async def get_contents(self, drive_name, path):
174174
# stream will be an async iterable of RecordBatch
175175
stream = obs.list(self._content_managers[drive_name], path, chunk_size=100, return_arrow=True)
176176
async for batch in stream:
177-
# check once if we are dealing with a directory
177+
# if content exists we are dealing with a directory
178178
if isDir is False and batch:
179179
isDir = True
180180
emptyDir = False
@@ -194,6 +194,7 @@ async def get_contents(self, drive_name, path):
194194
obj = await obs.get_async(self._content_managers[drive_name], path)
195195
stream = obj.stream(min_chunk_size=5 * 1024 * 1024) # 5MB sized chunks
196196
async for buf in stream:
197+
# if content exists we are dealing with a file
197198
if emptyDir is True and buf:
198199
emptyDir = False
199200
content += buf

0 commit comments

Comments
 (0)