download
method will not cache the file. To enable caching, pass cache=True
.
~/.latch/
directory. Without caching enabled, this can result in multiple downloads of the same file, unnecessarily increasing storage usage. To avoid this, it is strongly recommended to set a destination path and enable caching, especially when using LPath in Latch Pods or Latch Plots.LPath("latch:///parent_directory").mkdirp()
.node_id()
name()
content_type()
size()
LPath
method is invoked. To re-populate the cache, use the
LPath().fetch_metadata()
method. For example:
size_recursive
method can be very slow on large directories and should only be used if absolutely necessary.