mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
OP-3405 - Hound
This commit is contained in:
parent
eb2c825588
commit
26c4a0f8ca
2 changed files with 7 additions and 5 deletions
|
|
@ -111,7 +111,8 @@ class LocalDriveHandler(AbstractProvider):
|
|||
Download a file form 'source_path' to 'local_path'
|
||||
"""
|
||||
return self.upload_file(source_path, local_path,
|
||||
server, project_name, file, representation, site,
|
||||
server, project_name, file,
|
||||
representation, site,
|
||||
overwrite, direction="Download")
|
||||
|
||||
def delete_file(self, path):
|
||||
|
|
|
|||
|
|
@ -54,8 +54,9 @@ async def upload(module, project_name, file, representation, provider_name,
|
|||
|
||||
file_path = file.get("path", "")
|
||||
try:
|
||||
local_file_path, remote_file_path = resolve_paths(module,
|
||||
file_path, project_name, remote_site_name, remote_handler
|
||||
local_file_path, remote_file_path = resolve_paths(
|
||||
module, file_path, project_name,
|
||||
remote_site_name, remote_handler
|
||||
)
|
||||
except Exception as exp:
|
||||
print(exp)
|
||||
|
|
@ -270,8 +271,8 @@ class SyncServerThread(threading.Thread):
|
|||
- gets list of collections in DB
|
||||
- gets list of active remote providers (has configuration,
|
||||
credentials)
|
||||
- for each project_name it looks for representations that should
|
||||
be synced
|
||||
- for each project_name it looks for representations that
|
||||
should be synced
|
||||
- synchronize found collections
|
||||
- update representations - fills error messages for exceptions
|
||||
- waits X seconds and repeat
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue