files-com 1.6.41__py3-none-any.whl → 1.6.42__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 files-com might be problematic. Click here for more details.

_VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.41
1
+ 1.6.42
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: files_com
3
- Version: 1.6.41
3
+ Version: 1.6.42
4
4
  Summary: Python bindings for the Files.com API
5
5
  License: MIT
6
6
  Requires-Python: >=3.5
@@ -1,7 +1,7 @@
1
1
  README.md,sha256=dJpTjuJA-JJIQ4CKgQhlbqyxanVatHk0RXgCD6KFl3A,28758
2
- _VERSION,sha256=0948_0a5B5O2QV9Xy_QAHWfti5Kd3hpTqP-bZrTwrLE,7
3
- files_com-1.6.41.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
- files_sdk/__init__.py,sha256=KNKOruHO_-q9FIdrPkYln1cod_y0B8jH3wsZ5qf5BOA,12884
2
+ _VERSION,sha256=94pzTKV_Qp7G9Dj_i7m2OpmIZrYS_LTCB_fOu5RAV10,7
3
+ files_com-1.6.42.dist-info/licenses/LICENSE,sha256=ziANl9OTD-5-iE8XYIZNm6IYBDxOCHwQ-mdhci7lNew,1102
4
+ files_sdk/__init__.py,sha256=RVMyCN7eIO-229FHbbqCqRMfHqqolM_lU5zNnwA8Fbw,12884
5
5
  files_sdk/api.py,sha256=HOLk50HLQCbnHwnAr9OElQEWvdA_BABBSEvvFSt1S4A,1846
6
6
  files_sdk/api_client.py,sha256=cfFvm-o4Ao8SWADiJv7t7qnJfG_LJmWV3l6ALTC-Opo,11264
7
7
  files_sdk/error.py,sha256=lZKht6lYj9i99CzRbHschmdSs6T2Y51-YrZX_5Y_o7A,64945
@@ -47,7 +47,7 @@ files_sdk/models/file_comment_reaction.py,sha256=FHvRIpcV69qwN7WEbUyMZ-8dI2EGZsL
47
47
  files_sdk/models/file_migration.py,sha256=s5btcbmfKgxBzKJF60OHmQjtPEev3B04S-IlYzdzua4,2341
48
48
  files_sdk/models/file_migration_log.py,sha256=x_6trTMHWGXV7X4mXN-1swdV0Zx9e0MHP56mIlo3qQQ,11492
49
49
  files_sdk/models/file_upload_part.py,sha256=Js2XmLdG6lpkMHgehQkoNKQ0yoKpsCbSKOXHKnHWa-8,2584
50
- files_sdk/models/folder.py,sha256=5pxgJvuk8MpyVCUW2c9vT77LAAHZQaBZ_mBdjaTOo2I,10676
50
+ files_sdk/models/folder.py,sha256=KCKbx5FlRSzxm5JJmDpdZbAev7PmrGmdUusPKWJi44A,11271
51
51
  files_sdk/models/form_field.py,sha256=xaaLnvctZ3Do5lnppn-s6UQguzfsyVpfdmz-Ykij9Nw,1509
52
52
  files_sdk/models/form_field_set.py,sha256=7hms9QZNWmSoCdZZUsYoQvTaT5lmDwDGz5YdwBZxOq8,10528
53
53
  files_sdk/models/ftp_action_log.py,sha256=ozCEqTrOEfzBrvlIPuhsVLaVSRj8MhtThVHjsJUog54,168594
@@ -112,7 +112,7 @@ files_sdk/models/user_request.py,sha256=ykA5Lq0MYB7qTDOMMFBuyKa_R_LgQwGVorC-q-6q
112
112
  files_sdk/models/user_sftp_client_use.py,sha256=VnOo3ll6fwSc8grG5ZqGK8o3grYKg5P9b5B_hGS4vCs,2827
113
113
  files_sdk/models/web_dav_action_log.py,sha256=uMTIkTgSpW5mgKAEWnCmI4U5eqcAL2g8OHqB-lBir3A,76424
114
114
  files_sdk/models/webhook_test.py,sha256=AWGH8ULsgltBJL2YtTYGnAJ80cCVekrjZ2sUP0UlWgc,5018
115
- files_com-1.6.41.dist-info/METADATA,sha256=Ps7267CXIjgC9v2Fy670ehQYx-m8T9i8OhS8r1LC1GE,29050
116
- files_com-1.6.41.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
- files_com-1.6.41.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
- files_com-1.6.41.dist-info/RECORD,,
115
+ files_com-1.6.42.dist-info/METADATA,sha256=IgDktkxUakEZSoKDsimp1kEdNwO8rW71ftu7ljjuR6M,29050
116
+ files_com-1.6.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ files_com-1.6.42.dist-info/top_level.txt,sha256=p_2P-gluT_8boeXQNixTP3x-tFd1-la2NedKOiln21I,10
118
+ files_com-1.6.42.dist-info/RECORD,,
files_sdk/__init__.py CHANGED
@@ -223,7 +223,7 @@ session_id = None
223
223
  source_ip = None
224
224
  base_url = "https://app.files.com"
225
225
  base_path = "api/rest/v1"
226
- version = "1.6.41"
226
+ version = "1.6.42"
227
227
 
228
228
  __version__ = version
229
229
 
@@ -85,6 +85,8 @@ class Folder:
85
85
  # search_all - boolean - Search entire site? If set, we will ignore the folder path provided and search the entire site. This is the same API used by the search bar in the web UI when running 'Search All Files'. Search results are a best effort, not real time, and not guaranteed to match every file. This field should only be used for ad-hoc (human) searching, and not as part of an automated process.
86
86
  # with_previews - boolean - Include file previews?
87
87
  # with_priority_color - boolean - Include file priority color information?
88
+ # type - string - Type of objects to return. Can be `folder` or `file`.
89
+ # modified_at_datetime - string - If provided, will only return files/folders modified after this time. Can be used only in combination with `type` filter.
88
90
  def list_for(path, params=None, options=None):
89
91
  if not isinstance(params, dict):
90
92
  params = {}
@@ -129,6 +131,14 @@ def list_for(path, params=None, options=None):
129
131
  raise InvalidParameterError(
130
132
  "Bad parameter: with_priority_color must be an bool"
131
133
  )
134
+ if "type" in params and not isinstance(params["type"], str):
135
+ raise InvalidParameterError("Bad parameter: type must be an str")
136
+ if "modified_at_datetime" in params and not isinstance(
137
+ params["modified_at_datetime"], str
138
+ ):
139
+ raise InvalidParameterError(
140
+ "Bad parameter: modified_at_datetime must be an str"
141
+ )
132
142
  if "path" not in params:
133
143
  raise MissingParameterError("Parameter missing: path")
134
144
  return ListObj(