@@ -190,10 +190,10 @@ function FolderStore(foldername::String; createfolder = true)
190
190
return FolderStore {Vector{UInt8}} (:default_folder_store , foldername)
191
191
end
192
192
193
- blobfilename (store:: FolderStore , blobId:: UUID ) = joinpath (store. folder, " $ blobId.dat " )
193
+ blobfilename (store:: FolderStore , blobId:: UUID ) = joinpath (store. folder, string ( blobId) )
194
194
195
195
function getBlob (store:: FolderStore{T} , blobId:: UUID ) where {T}
196
- blobfilename = joinpath (store. folder, " $ blobId.dat " )
196
+ blobfilename = joinpath (store. folder, string ( blobId) )
197
197
if isfile (blobfilename)
198
198
open (blobfilename) do f
199
199
return read (f)
@@ -204,7 +204,7 @@ function getBlob(store::FolderStore{T}, blobId::UUID) where {T}
204
204
end
205
205
206
206
function addBlob! (store:: FolderStore{T} , blobId:: UUID , data:: T ) where {T}
207
- blobfilename = joinpath (store. folder, " $ blobId.dat " )
207
+ blobfilename = joinpath (store. folder, string ( blobId) )
208
208
if isfile (blobfilename)
209
209
throw (KeyError (" Key '$blobId ' blob already exists." ))
210
210
else
@@ -217,7 +217,7 @@ function addBlob!(store::FolderStore{T}, blobId::UUID, data::T) where {T}
217
217
end
218
218
219
219
function updateBlob! (store:: FolderStore{T} , blobId:: UUID , data:: T ) where {T}
220
- blobfilename = joinpath (store. folder, " $ blobId.dat " )
220
+ blobfilename = joinpath (store. folder, string ( blobId) )
221
221
if ! isfile (blobfilename)
222
222
@warn " Key '$blobId ' doesn't exist."
223
223
else
@@ -229,7 +229,7 @@ function updateBlob!(store::FolderStore{T}, blobId::UUID, data::T) where {T}
229
229
end
230
230
231
231
function deleteBlob! (store:: FolderStore{T} , blobId:: UUID ) where {T}
232
- blobfilename = joinpath (store. folder, " $ blobId.dat " )
232
+ blobfilename = joinpath (store. folder, string ( blobId) )
233
233
234
234
data = getBlob (store, blobId)
235
235
rm (blobfilename)
238
238
239
239
# hasBlob or existsBlob?
240
240
function hasBlob (store:: FolderStore , blobId:: UUID )
241
- blobfilename = joinpath (store. folder, " $ blobId.dat " )
241
+ blobfilename = joinpath (store. folder, string ( blobId) )
242
242
return isfile (blobfilename)
243
243
end
244
244
0 commit comments