MCPcopy Create free account
hub / github.com/Meshcapade/difflocks / can_load_chunked_paths

Method can_load_chunked_paths

data_loader/dataloader.py:103–109  ·  view source on GitHub ↗
(self,chunk=100)

Source from the content-addressed store, hash-verified

101
102 # check if we even have the chunked data required
103 def can_load_chunked_paths(self,chunk=100):
104 if chunk==100:
105 return os.path.isdir(self.path_chunk_100) and not dir_empty(self.path_chunk_100)
106 elif chunk==1000:
107 return os.path.isdir(self.path_chunk_1000) and not dir_empty(self.path_chunk_1000)
108 else:
109 return False
110
111 # to save memory and process time, we load the chunked paths of the granularity that we expect to read from later
112 def load_chunked_paths(self,chunk=100):

Callers

nothing calls this directly

Calls 1

dir_emptyFunction · 0.85

Tested by

no test coverage detected