rara-tools 0.0.3__py3-none-any.whl → 0.0.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of rara-tools might be problematic. Click here for more details.

rara_tools/s3.py CHANGED
@@ -45,12 +45,13 @@ class S3Files:
45
45
  raise S3InputException(f"File '{file_path}' does not exist in file system!")
46
46
  return self.minio_client.fput_object(self.bucket, s3_path_name, file_path)
47
47
 
48
- def list(self, prefix: Optional[str] = "") -> List:
49
- """Lists all available files in S3 bucket.
48
+ def list(self, prefix: Optional[str] = "", recursive: Optional[bool] = True) -> List:
49
+ """Lists all available directories or files in S3 bucket.
50
50
  :param: prefix str: Limits the listing to a given prefix.
51
+ :param: recursive bool: List files recursively.
51
52
  :return: List of file paths in S3.
52
53
  """
53
- list_of_objects = self.minio_client.list_objects(self.bucket, prefix=prefix, recursive=True)
54
+ list_of_objects = self.minio_client.list_objects(self.bucket, prefix=prefix, recursive=recursive)
54
55
  list_of_objects = [o.object_name for o in list_of_objects]
55
56
  return list_of_objects
56
57
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: rara-tools
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: Tools to support Kata's work.
5
5
  Classifier: Programming Language :: Python :: 3
6
6
  Classifier: Programming Language :: Python :: 3.10
@@ -1,10 +1,10 @@
1
1
  rara_tools/decorators.py,sha256=rYDk5CEHhCZvqeFaHku8qLMv7G7NTMWppHwLg3ZeVj4,2186
2
2
  rara_tools/elastic.py,sha256=MVqai6wDQlDQeHQzAKsRpxOchI29y3W1UiridgfH6d4,3718
3
3
  rara_tools/exceptions.py,sha256=FtuHG-2snaEfADA25HjjutGNQzNo6sTdSfqk9VrzOuE,374
4
- rara_tools/s3.py,sha256=NxvY98gQdu2wAM3UOS6c2UzOCB2h96x417h7GrD23fI,4330
4
+ rara_tools/s3.py,sha256=eqMiOKbjXvXY04JJV68gmOU-4DUnwEaeYdhjQSI6crU,4440
5
5
  rara_tools/task_reporter.py,sha256=WCcZts9dAUokPc4vbrG3-lNAFLnWaMgE3b3iaUB7mr8,3256
6
- rara_tools-0.0.3.dist-info/LICENSE.md,sha256=hkZVnIZll7e_KNEQzeY94Y9tlzVL8iVZBTMBvDykksU,35142
7
- rara_tools-0.0.3.dist-info/METADATA,sha256=Jh9IQfWDepNQxHu67JitXPMyxyYS_sOfwrPcPg6jSpc,3820
8
- rara_tools-0.0.3.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
- rara_tools-0.0.3.dist-info/top_level.txt,sha256=JwfB5b8BAtW5OFKRln2AQ_WElTRyIBM4nO0FKN1cupY,11
10
- rara_tools-0.0.3.dist-info/RECORD,,
6
+ rara_tools-0.0.4.dist-info/LICENSE.md,sha256=hkZVnIZll7e_KNEQzeY94Y9tlzVL8iVZBTMBvDykksU,35142
7
+ rara_tools-0.0.4.dist-info/METADATA,sha256=onb2qPn7IXknjCM09yxKfuEZYJlTlUwetCrS2ZXlPio,3820
8
+ rara_tools-0.0.4.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
9
+ rara_tools-0.0.4.dist-info/top_level.txt,sha256=JwfB5b8BAtW5OFKRln2AQ_WElTRyIBM4nO0FKN1cupY,11
10
+ rara_tools-0.0.4.dist-info/RECORD,,