[Scarpet Suggestion] create_datapack(... ,zipped?)
BisUmTo opened this issue ยท 4 comments
Add a zipped parameter tp create_datapack
function, default to true
.
If setted to false
, the datapack will be in directory form, allowing files-overwriting.
delete_datapack(name)
deletes the datapack
create_datapack(name, data, zipped?=true, modality?='create')
modality can be 'create', 'overwrite' or 'merge'
If zipped is true, I think it is not possible to change modality (fixed on 'create')
it should possible to add the ability to overwrite disabled zipped datapacks too ๐ค
suggesting adding another parameter optinally indicating allowing for overwrite (still only applicable to folder dpacks. Reason is explicitness - you don't want to make changes by accident and its fair to assume that by default dpacks are write-once-read-only
so
create_datapack(name, data, zipped=true?, overwrite=false?)