Skip to content
  • Christian Hesse's avatar
    global-functions: add $WaitForFile, wait for file on fetch · 7f96e5c9
    Christian Hesse authored
    The fetch command is asynchronous, the file is not guaranteed to be
    available when command terminates.
    
    I opened an issue at Mikrotik support (Ticket#2019041722004999),
    their answer:
    
    > You should perform a check in a loop.
    > :delay until file exist
    >
    > That can happen also with any configuration not just files.
    
    So add a function to wait for a file with given name.
    
    I have not seen this with other configuration, though.
    7f96e5c9