Skip to content

Commit

Permalink
fix: latchfiles + latchdirs local path
Browse files Browse the repository at this point in the history
  • Loading branch information
ayushkamat committed May 30, 2022
1 parent cfcd953 commit 72a6248
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions latch/types/directory.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from flytekit.core.annotation import FlyteAnnotation
from flytekit.core.context_manager import FlyteContext

from flytekit.core.type_engine import TypeEngine, TypeTransformer
from flytekit.models.literals import Literal
from flytekit.types.directory.types import (
Expand Down Expand Up @@ -75,7 +74,7 @@ def noop():
@property
def local_path(self) -> str:
"""File path local to the environment executing the task."""
return self._path
return self.path

@property
def remote_path(self) -> Optional[str]:
Expand Down
2 changes: 1 addition & 1 deletion latch/types/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def noop():
@property
def local_path(self) -> str:
"""File path local to the environment executing the task."""
return self._path
return self.path

@property
def remote_path(self) -> Optional[str]:
Expand Down

0 comments on commit 72a6248

Please sign in to comment.