[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix wrong file path being checked when trying to sync images from loc…
Browse files Browse the repository at this point in the history
…al storage subfolder (HumanSignal#761)

Co-authored-by: Sergey <triklozoid@gmail.com>
  • Loading branch information
Edern76 and triklozoid committed Apr 8, 2021
1 parent c50f890 commit 705d7b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions label_studio/io_storages/localfiles/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ def iterkeys(self):
if regex and not regex.match(key):
logger.debug(key + ' is skipped by regex filter')
continue
yield file.name
yield str(file)

def get_data(self, key):
path = Path(self.path) / key
path = Path(key)
if self.use_blob_urls:
# include self-hosted links pointed to local resources via /data/filename?d=<path/to/local/dir>
document_root = Path(get_env('LOCAL_FILES_DOCUMENT_ROOT', default='/'))
Expand Down

0 comments on commit 705d7b5

Please sign in to comment.