Commit 0f419718 authored by Carlos Juliano Viana's avatar Carlos Juliano Viana
Browse files

Removendo verificação dos atributos desnecessár pois já é feita noa nova função.

[SOMA-3993]
[SOMA-2554]
parent e7269f07
......@@ -73,18 +73,12 @@ end
function application.new(config)
local ok, err = rmkdir(config.runtime_data_dir)
if not ok then
local attr = lfs.attributes(config.runtime_data_dir)
if not (attr and attr.mode == "directory") then
return nil, "Failed creating runtime data dir "..config.runtime_data_dir
end
return nil, "Failed creating runtime data dir "..config.runtime_data_dir
end
local ok, err = rmkdir(config.sandbox_root_dir)
if not ok then
local attr = lfs.attributes(config.sandbox_root_dir)
if not (attr and attr.mode == "directory") then
return nil, "Failed creating sandbox root dir "..config.sandbox_root_dir
end
return nil, "Failed creating sandbox root dir "..config.sandbox_root_dir
end
local client_object = client.new(config, make_logger("sga.client"))
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment