@@ -71,8 +71,8 @@ class ManagedFile(NamedTuple):
7171 orphan : bool
7272 missing : bool
7373 uploaded : Optional [str ]
74- entity_id : str
75- collection_entity_id : str
74+ entity_id : Optional [ str ]
75+ collection_entity_id : Optional [ str ]
7676
7777
7878def row_to_managed_file (row ):
@@ -94,7 +94,7 @@ def row_to_managed_file(row):
9494 return ManagedFile (
9595 id = fid ,
9696 name = name ,
97- path = path .replace ('public://' , '' ),
97+ nfs_path = path .replace ('public://' , '' ),
9898 type = 'metadata' ,
9999 folder = path .rpartition ('metadata-files' )[2 ].replace (name , '' ).replace ('/' , '' ),
100100 orphan = False ,
@@ -105,7 +105,7 @@ def row_to_managed_file(row):
105105 return ManagedFile (
106106 id = fid ,
107107 name = name ,
108- path = path .replace ('public://' , '' ),
108+ nfs_path = path .replace ('public://' , '' ),
109109 type = 'output' ,
110110 folder = folder ,
111111 orphan = False ,
@@ -115,7 +115,7 @@ def row_to_managed_file(row):
115115 return ManagedFile (
116116 id = fid ,
117117 name = name ,
118- path = path .replace ('public://' , '' ),
118+ nfs_path = path .replace ('public://' , '' ),
119119 type = 'logs' ,
120120 folder = path .rpartition ('output-logs' )[2 ].replace (name , '' ).replace ('/' , '' ),
121121 orphan = False ,
0 commit comments