@@ -151,13 +151,13 @@ type ARC(identifier : string, ?title : string, ?description : string, ?submissio
151151 static member fromArcInvestigation ( isa : ArcInvestigation , ? fs : FileSystem , ? license : License ) =
152152 ARC( identifier = isa.Identifier, ?title = isa.Title, ?description = isa.Description, ?submissionDate = isa.SubmissionDate, ?publicReleaseDate = isa.PublicReleaseDate, ontologySourceReferences = isa.OntologySourceReferences, publications = isa.Publications, contacts = isa.Contacts, assays = isa.Assays, studies = isa.Studies, workflows = isa.Workflows, runs = isa.Runs, registeredStudyIdentifiers = isa.RegisteredStudyIdentifiers, comments = isa.Comments, remarks = isa.Remarks, ?fs = fs, ?license = license)
153153
154- member this.TryWriteAsync ( arcPath ) =
154+ member this.TryWriteAsync ( arcPath , ? forceOverwrite ) =
155155 this.GetWriteContracts()
156- |> fullFillContractBatchAsync arcPath
156+ |> fullFillContractBatchAsync ( defaultArg forceOverwrite false ) arcPath
157157
158- member this.TryUpdateAsync ( arcPath ) =
158+ member this.TryUpdateAsync ( arcPath , ? forceOverwrite ) =
159159 this.GetUpdateContracts()
160- |> fullFillContractBatchAsync arcPath
160+ |> fullFillContractBatchAsync ( defaultArg forceOverwrite false ) arcPath
161161
162162 member this.SetLicenseFulltext ( fulltext : string , ? path : string ) : unit =
163163 match this.License with
@@ -180,7 +180,7 @@ type ARC(identifier : string, ?title : string, ?description : string, ?submissio
180180
181181 let! fulFilledContracts =
182182 contracts
183- |> fullFillContractBatchAsync arcPath
183+ |> fullFillContractBatchAsync false arcPath
184184
185185 match fulFilledContracts with
186186 | Ok c ->
@@ -236,15 +236,15 @@ type ARC(identifier : string, ?title : string, ?description : string, ?submissio
236236
237237 member this.TryRemoveAssayAsync ( arcPath : string , assayIdentifier : string ) =
238238 this.GetAssayRemoveContracts( assayIdentifier)
239- |> fullFillContractBatchAsync arcPath
239+ |> fullFillContractBatchAsync false arcPath
240240
241241 member this.TryRemoveRunAsync ( arcPath : string , runIdentifier : string ) =
242242 this.GetRunRemoveContracts( runIdentifier)
243- |> fullFillContractBatchAsync arcPath
243+ |> fullFillContractBatchAsync false arcPath
244244
245245 member this.TryRemoveWorkflowAsync ( arcPath : string , workflowIdentifier : string ) =
246246 this.GetWorkflowRemoveContracts( workflowIdentifier)
247- |> fullFillContractBatchAsync arcPath
247+ |> fullFillContractBatchAsync false arcPath
248248
249249 member this.RemoveRunAsync ( arcPath , runIdentifier ) =
250250 crossAsync {
@@ -268,11 +268,11 @@ type ARC(identifier : string, ?title : string, ?description : string, ?submissio
268268
269269 member this.TryRenameRunAsync ( arcPath : string , oldRunIdentifier : string , newRunIdentifier : string ) =
270270 this.GetRunRenameContracts( oldRunIdentifier, newRunIdentifier)
271- |> fullFillContractBatchAsync arcPath
271+ |> fullFillContractBatchAsync false arcPath
272272
273273 member this.TryRenameWorkflowAsync ( arcPath : string , oldWorkflowIdentifier : string , newWorkflowIdentifier : string ) =
274274 this.GetWorkflowRenameContracts( oldWorkflowIdentifier, newWorkflowIdentifier)
275- |> fullFillContractBatchAsync arcPath
275+ |> fullFillContractBatchAsync false arcPath
276276
277277 member this.RenameRunAsync ( arcPath , oldRunIdentifier , newRunIdentifier ) =
278278 crossAsync {
@@ -341,7 +341,7 @@ type ARC(identifier : string, ?title : string, ?description : string, ?submissio
341341
342342 member this.TryRenameAssayAsync ( arcPath : string , oldAssayIdentifier : string , newAssayIdentifier : string ) =
343343 this.GetAssayRenameContracts( oldAssayIdentifier, newAssayIdentifier)
344- |> fullFillContractBatchAsync arcPath
344+ |> fullFillContractBatchAsync false arcPath
345345
346346 member this.GetStudyRemoveContracts ( studyIdentifier : string ) =
347347 base .RemoveStudy( studyIdentifier)
@@ -356,7 +356,7 @@ type ARC(identifier : string, ?title : string, ?description : string, ?submissio
356356
357357 member this.TryRemoveStudyAsync ( arcPath : string , studyIdentifier : string ) =
358358 this.GetStudyRemoveContracts( studyIdentifier)
359- |> fullFillContractBatchAsync arcPath
359+ |> fullFillContractBatchAsync false arcPath
360360
361361 member this.GetStudyRenameContracts ( oldStudyIdentifier : string , newStudyIdentifier : string ) =
362362 if this.StudyIdentifiers |> Seq.contains oldStudyIdentifier |> not then
@@ -375,7 +375,7 @@ type ARC(identifier : string, ?title : string, ?description : string, ?submissio
375375
376376 member this.TryRenameStudyAsync ( arcPath : string , oldStudyIdentifier : string , newStudyIdentifier : string ) =
377377 this.GetStudyRenameContracts( oldStudyIdentifier, newStudyIdentifier)
378- |> fullFillContractBatchAsync arcPath
378+ |> fullFillContractBatchAsync false arcPath
379379
380380
381381 member this.WriteAsync ( arcPath ) =
0 commit comments