Skip to content

Rescan files with occ after a file operation is done  #164

Description

@oleua

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions