zscams 2.0.13__py3-none-any.whl → 2.0.15__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.
- zscams/agent/src/support/os.py +7 -5
- {zscams-2.0.13.dist-info → zscams-2.0.15.dist-info}/METADATA +2 -3
- {zscams-2.0.13.dist-info → zscams-2.0.15.dist-info}/RECORD +5 -5
- {zscams-2.0.13.dist-info → zscams-2.0.15.dist-info}/WHEEL +0 -0
- {zscams-2.0.13.dist-info → zscams-2.0.15.dist-info}/entry_points.txt +0 -0
zscams/agent/src/support/os.py
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import os
|
|
2
|
+
import shutil
|
|
2
3
|
from pathlib import Path
|
|
3
4
|
import sys
|
|
4
5
|
import subprocess
|
|
5
6
|
import platform
|
|
6
|
-
from typing import Optional
|
|
7
|
+
from typing import Optional, Union
|
|
7
8
|
from zscams.agent.src.support.logger import get_logger
|
|
8
9
|
from zscams.agent.src.support.mac import get_mac_address
|
|
9
10
|
|
|
@@ -24,7 +25,7 @@ def is_freebsd():
|
|
|
24
25
|
|
|
25
26
|
|
|
26
27
|
def set_directory_ownership_and_permissions(
|
|
27
|
-
directory_path: str
|
|
28
|
+
directory_path: Union[str, Path],
|
|
28
29
|
owner_user: Optional[str] = None,
|
|
29
30
|
mod: Optional[int] = None,
|
|
30
31
|
):
|
|
@@ -37,19 +38,20 @@ def set_directory_ownership_and_permissions(
|
|
|
37
38
|
|
|
38
39
|
for root, _dirs, files in os.walk(directory_path):
|
|
39
40
|
if owner_user:
|
|
40
|
-
|
|
41
|
+
shutil.chown(root, owner_user)
|
|
42
|
+
|
|
41
43
|
if mod:
|
|
42
44
|
os.chmod(root, mod)
|
|
43
45
|
|
|
44
46
|
for name in files:
|
|
45
47
|
file_path = os.path.join(root, name)
|
|
46
48
|
if owner_user:
|
|
47
|
-
|
|
49
|
+
shutil.chown(file_path, owner_user)
|
|
48
50
|
if mod:
|
|
49
51
|
os.chmod(file_path, mod)
|
|
50
52
|
|
|
51
53
|
if owner_user:
|
|
52
|
-
|
|
54
|
+
shutil.chown(directory_path, owner_user)
|
|
53
55
|
if mod:
|
|
54
56
|
os.chmod(directory_path, mod)
|
|
55
57
|
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: zscams
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.15
|
|
4
4
|
Summary: Async TLS tunnel client with SNI routing, auto-reconnect, and health checks
|
|
5
5
|
Author: OCD - Cairo Software Team
|
|
6
6
|
Maintainer: OCD - Cairo Software Team
|
|
7
|
-
Requires-Python:
|
|
7
|
+
Requires-Python: >3.9.0
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
10
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
11
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
12
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
@@ -31,11 +31,11 @@ zscams/agent/src/support/logger.py,sha256=cKmCqy2dSOJk7kivs9QPyop7bLa71619ODNylS
|
|
|
31
31
|
zscams/agent/src/support/mac.py,sha256=XVKc5YAYLu4a-5VrMhcwgkMNnP2u6itK3cx-Oxnx4IA,453
|
|
32
32
|
zscams/agent/src/support/network.py,sha256=VwVVNqykZxvrTPwPYQ3sSVMc_Z2XUwASlo_kd_wdGDs,1453
|
|
33
33
|
zscams/agent/src/support/openssl.py,sha256=jLSv8ajIw1YfNdBhz4KSvNp-cARLXY9-7qdzne9Zca4,3429
|
|
34
|
-
zscams/agent/src/support/os.py,sha256=
|
|
34
|
+
zscams/agent/src/support/os.py,sha256=0Sr_AIGHjnAmG_7CiZohY3AczIMpObu1yj_m_6oOPs0,7997
|
|
35
35
|
zscams/agent/src/support/ssh.py,sha256=gH1DVnxuIQj1XO2ILyqmD2bwjXH63QtdwZ7e06_8UqU,855
|
|
36
36
|
zscams/agent/src/support/yaml.py,sha256=7NXPqj-v_RUif3fLfErNwSUJ-Y-so0GCFZ5aIiU96GQ,1192
|
|
37
37
|
zscams/deps.py,sha256=9xbpgq77oTch-Nv_99QQtkyO3a96JxqFjUH_2d5zt4Q,3575
|
|
38
|
-
zscams-2.0.
|
|
39
|
-
zscams-2.0.
|
|
40
|
-
zscams-2.0.
|
|
41
|
-
zscams-2.0.
|
|
38
|
+
zscams-2.0.15.dist-info/METADATA,sha256=ECHwbjTmDamE9EeAYWabnwqmgk2gfA2LUdv9goVBJsY,6757
|
|
39
|
+
zscams-2.0.15.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
40
|
+
zscams-2.0.15.dist-info/entry_points.txt,sha256=IXiMYjEq4q0tUiD9O7eCWhqKBuOssXrMW42siTBAgG8,47
|
|
41
|
+
zscams-2.0.15.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|