NGPIris 5.2.1.dev2__py3-none-any.whl → 5.2.2.dev2__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.
- NGPIris/cli/__init__.py +1 -0
- NGPIris/hcp/helpers.py +4 -2
- {NGPIris-5.2.1.dev2.dist-info → NGPIris-5.2.2.dev2.dist-info}/METADATA +1 -1
- {NGPIris-5.2.1.dev2.dist-info → NGPIris-5.2.2.dev2.dist-info}/RECORD +8 -8
- {NGPIris-5.2.1.dev2.dist-info → NGPIris-5.2.2.dev2.dist-info}/LICENSE +0 -0
- {NGPIris-5.2.1.dev2.dist-info → NGPIris-5.2.2.dev2.dist-info}/WHEEL +0 -0
- {NGPIris-5.2.1.dev2.dist-info → NGPIris-5.2.2.dev2.dist-info}/entry_points.txt +0 -0
- {NGPIris-5.2.1.dev2.dist-info → NGPIris-5.2.2.dev2.dist-info}/top_level.txt +0 -0
NGPIris/cli/__init__.py
CHANGED
|
@@ -95,6 +95,7 @@ def upload(context : Context, bucket : str, source : str, destination : str):
|
|
|
95
95
|
hcph : HCPHandler = get_HCPHandler(context)
|
|
96
96
|
hcph.mount_bucket(bucket)
|
|
97
97
|
destination = add_trailing_slash(destination)
|
|
98
|
+
click.echo("CWD: " + str(Path.cwd()))
|
|
98
99
|
if Path(source).is_dir():
|
|
99
100
|
source = add_trailing_slash(source)
|
|
100
101
|
hcph.upload_folder(source, destination)
|
NGPIris/hcp/helpers.py
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
from
|
|
2
|
+
from pathlib import Path
|
|
3
3
|
from typing import Callable, TypeVar, ParamSpec
|
|
4
4
|
|
|
5
5
|
from NGPIris.hcp.exceptions import NoBucketMounted
|
|
@@ -23,7 +23,9 @@ def create_access_control_policy(user_ID_permissions : dict[str, str]) -> dict:
|
|
|
23
23
|
return access_control_policy
|
|
24
24
|
|
|
25
25
|
def raise_path_error(path : str):
|
|
26
|
-
if
|
|
26
|
+
if Path(path).is_mount():
|
|
27
|
+
return "Is mounted"
|
|
28
|
+
if not Path(path).exists():
|
|
27
29
|
raise FileNotFoundError("\"" + path + "\"" + " does not exist")
|
|
28
30
|
|
|
29
31
|
# Decorator for checking if a bucket is mounted. This is meant to be used by
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
NGPIris/__init__.py,sha256=eHaeRGl1JQ_hjsazEd4oQCXOkdpSxLIzg-ipYAAaa-s,69
|
|
2
|
-
NGPIris/cli/__init__.py,sha256=
|
|
2
|
+
NGPIris/cli/__init__.py,sha256=YVVtVHAaAk8G50A1FF5WUSY0XaW1on9NS9YSHfZIu2g,13120
|
|
3
3
|
NGPIris/hci/__init__.py,sha256=qZRzN2JZp8uIw46TQiqJHMIkleiVDErSoZ3-v0O_cZU,38
|
|
4
4
|
NGPIris/hci/exceptions.py,sha256=wUbpUwY8u1QtuSvnzlBuql9LgGsxBl207IGsHkCt-JQ,47
|
|
5
5
|
NGPIris/hci/hci.py,sha256=-7RBWPGqlINVNsl-GbjuXkcLdIF5cs4cu3OFt2FJi1E,4321
|
|
@@ -7,15 +7,15 @@ NGPIris/hci/helpers.py,sha256=THZt9ItmEsEiuvB1v99orAx1oOMgBdGR62PQyOre5yo,2592
|
|
|
7
7
|
NGPIris/hcp/__init__.py,sha256=yMDW3WpxsU89GNcBJ3ApeGHOmWvisfuuAsZxwlKWnpw,38
|
|
8
8
|
NGPIris/hcp/exceptions.py,sha256=24irbs3JMWaVOM_gf4ByR1hfYPpEP1eXPgHvq77uuqU,361
|
|
9
9
|
NGPIris/hcp/hcp.py,sha256=4_uxfGMNTJvabc_VGTxahrZhIpe5YSIM5Kt14Y8Jx1w,26708
|
|
10
|
-
NGPIris/hcp/helpers.py,sha256=
|
|
10
|
+
NGPIris/hcp/helpers.py,sha256=RV4pSsPTLPdcQ0EWyLZJYt7zMjO669M-ef8QUC-2tVY,1469
|
|
11
11
|
NGPIris/hcp/statistics.py,sha256=8VgRC-7hWQOCRWwoKk4NHCtGTdY_4C2iHcAHEXKJ0kM,817
|
|
12
12
|
NGPIris/parse_credentials/__init__.py,sha256=O9uq_F9uOtuW7giW-t10KV4VmTgfkvgaBEwQU43Sf-w,57
|
|
13
13
|
NGPIris/parse_credentials/parse_credentials.py,sha256=E1NzQCMvjOa2mGLBkEYshZomNSxfSCkoc_iUhUfpBEM,2106
|
|
14
14
|
NGPIris/utils/__init__.py,sha256=yPCEc1-_7r01dZ-31EKiA7Jova7ztX7XXuU95IKmKX8,59
|
|
15
15
|
NGPIris/utils/utils.py,sha256=m9qwLuOoiqVNRy7B4raYNFJkigL_wE--PiWhyhVhHII,248
|
|
16
|
-
NGPIris-5.2.
|
|
17
|
-
NGPIris-5.2.
|
|
18
|
-
NGPIris-5.2.
|
|
19
|
-
NGPIris-5.2.
|
|
20
|
-
NGPIris-5.2.
|
|
21
|
-
NGPIris-5.2.
|
|
16
|
+
NGPIris-5.2.2.dev2.dist-info/LICENSE,sha256=ZA2Q9u5AEkH_YoNNDRsz-DBJ6ZuL_foE7RsKFjXd4-c,18093
|
|
17
|
+
NGPIris-5.2.2.dev2.dist-info/METADATA,sha256=QQRw9IrTGcojukTqGs730jC_yjP4r14rccN1WTfZF6A,7080
|
|
18
|
+
NGPIris-5.2.2.dev2.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
|
|
19
|
+
NGPIris-5.2.2.dev2.dist-info/entry_points.txt,sha256=t8ADhe3ovPm9tW3XDZq1_vKmfHY98Ei_o6WioJobNzU,117
|
|
20
|
+
NGPIris-5.2.2.dev2.dist-info/top_level.txt,sha256=954WCuIJkle_SMtr7MNPapiiLLAFhlKbcz6Bp89-2V0,8
|
|
21
|
+
NGPIris-5.2.2.dev2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|