Hi! I use now nc v.28. I've created an app to unzip an archive file.
A piece of script:
local input_file = get_input_files()[1]
local selected_files = #get_input_files()
local dir = get_input("output_location")
local supported_formats = { 'zip' }
local input_file_extension = input_file.name:match("[^.]+$")
...
local input_path = meta_data(input_file).local_path
local output_path = meta_data(dir).local_path
...
command_tpl = 'unzip "%s" -d "%s"'
command = command_tpl:format(input_path, output_path)
....
So, the script unzips the file: I see it created in the server files structure, but the file doesn't appear in the webUI.
Am I forgetting to add some function to rescan files? Please, advice.
Hi! I use now nc v.28. I've created an app to unzip an archive file.
A piece of script:
So, the script unzips the file: I see it created in the server files structure, but the file doesn't appear in the webUI.
Am I forgetting to add some function to rescan files? Please, advice.