Skip to content

Commit

Permalink
Remove set_peek method from Directory datatype
Browse files Browse the repository at this point in the history
  • Loading branch information
davelopez committed Oct 14, 2024
1 parent bb3ae45 commit 6f0713b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/galaxy/datatypes/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,16 +1214,6 @@ class Directory(Data):

file_ext = "directory"

# The behavior of this class is intended to be similar to that of
# composite types, but with arbitrary structure of extra_files.

def set_peek(self, dataset: DatasetProtocol, **kwd) -> None:
if not dataset.dataset.purged:
dataset.blurb = nice_size(dataset.dataset.total_size)
else:
dataset.peek = "file does not exist"
dataset.blurb = "file purged from disk"

def _archive_main_file(
self, archive: ZipstreamWrapper, display_name: str, data_filename: str
) -> Tuple[bool, str, str]:
Expand Down

0 comments on commit 6f0713b

Please sign in to comment.