ginkgo-tools-batchssh 0.1.1__tar.gz → 0.1.2__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ginkgo-tools-batchssh
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: 批量SSH操作和文件传输工具包
5
5
  Author-email: 霍城 <495466557@qq.com>
6
6
  Maintainer-email: 霍城 <495466557@qq.com>
@@ -10,6 +10,7 @@ from typing import Optional
10
10
  from . import module_logger
11
11
  import os
12
12
  import stat
13
+ from pathlib import PurePosixPath, Path
13
14
 
14
15
  BASE_DIR = os.path.dirname(os.path.abspath(__file__))
15
16
 
@@ -536,7 +537,7 @@ class SSHWrapper:
536
537
  logger.debug(f"命令封装执行前流程,触发sudo切换执行操作")
537
538
  # 执行转移和变更操作
538
539
  if transfer_directory:
539
- sudoers_shell_path = os.path.join(transfer_directory, file_name)
540
+ sudoers_shell_path = PurePosixPath(transfer_directory, file_name)
540
541
  logger.debug(f"命令封装执行前流程,触发sudo切换执行操作,指定转移目录为:{transfer_directory}")
541
542
  else:
542
543
  if sudo_to_user == "root":sudoers_shell_path = f"/root/{file_name}"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ginkgo-tools-batchssh
3
- Version: 0.1.1
3
+ Version: 0.1.2
4
4
  Summary: 批量SSH操作和文件传输工具包
5
5
  Author-email: 霍城 <495466557@qq.com>
6
6
  Maintainer-email: 霍城 <495466557@qq.com>
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "ginkgo-tools-batchssh"
3
- version = "0.1.1"
3
+ version = "0.1.2"
4
4
  description = "批量SSH操作和文件传输工具包"
5
5
  readme = "README.md"
6
6
  authors = [