From 48bda87df5ec7d5ca0fb4b0b4a6cfacb2e5c63f1 Mon Sep 17 00:00:00 2001 From: Shashi Gowda Date: Tue, 3 Jul 2018 15:28:19 +0530 Subject: [PATCH] use open instead of touch to appease Azure fs --- src/AssetRegistry.jl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/AssetRegistry.jl b/src/AssetRegistry.jl index 7d16788..cf9de7c 100644 --- a/src/AssetRegistry.jl +++ b/src/AssetRegistry.jl @@ -36,7 +36,11 @@ function register(path; registry_file = joinpath(homedir(), ".jlassetregistry.js # update global registry file - touch(registry_file) + # touch(registry_file) -- this doesn't work on Azure fs + if !isfile(registry_file) + # WARN: may need a lock here + open(_->nothing, registry_file, "w") + end pidlock = joinpath(homedir(), ".jlassetregistry.lock")