bcmd 0.5.11__py3-none-any.whl → 0.5.12__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 bcmd might be problematic. Click here for more details.

bcmd/tasks/wasabi.py CHANGED
@@ -21,7 +21,7 @@ async def to_dir(
21
21
  ):
22
22
  '生成目录'
23
23
  assert file.is_file(), f'不是文件 {file}'
24
- workspace = file.parent / file.stem
24
+ workspace = file.with_suffix('')
25
25
  assert not workspace.exists(), f'目录已存在 {workspace}'
26
26
  password = password or getpass.getpass('请输入密码: ')
27
27
  with bpath.useTempFile() as tempFile:
@@ -46,8 +46,9 @@ async def to_file(
46
46
  password: str = typer.Option('', '--password', '-p', help='密码'),
47
47
  ):
48
48
  '生成文件'
49
+ workspace = workspace.absolute()
49
50
  assert workspace.is_dir(), f'不是目录 {workspace}'
50
- zipFile = workspace.parent / f'{workspace.name}.dat'
51
+ zipFile = workspace.with_suffix('.dat')
51
52
  assert not zipFile.exists(), f'文件已存在 {zipFile}'
52
53
  password = password or genPassword()
53
54
  with bpath.useTempFile() as tempFile:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: bcmd
3
- Version: 0.5.11
3
+ Version: 0.5.12
4
4
  Summary: Commands for Beni
5
5
  Author-email: Beni Mang <benimang@126.com>
6
6
  Maintainer-email: Beni Mang <benimang@126.com>
@@ -25,9 +25,9 @@ bcmd/tasks/proxy.py,sha256=xvxN5PClUnc5LQpmq2Wug7_LUVpJboMWLXBvL9lX7EM,1552
25
25
  bcmd/tasks/time.py,sha256=ZiqA1jdgl-TBtFSOxxP51nwv4g9iZItmkFKpf9MKelk,2453
26
26
  bcmd/tasks/upgrade.py,sha256=ZiyecgVbnnoTU_LAsd78CIKA4ioc9so9pXpAM76b_0M,447
27
27
  bcmd/tasks/venv.py,sha256=a7ZDyagUPQvCAXx3cZJIqJt0p1Iy5u5qmmj8iRbDQZE,7673
28
- bcmd/tasks/wasabi.py,sha256=s3nuON1llJ4cPbWCXEkkC3b7NvCAhVFZAIA2LO77kXI,2310
29
- bcmd-0.5.11.dist-info/METADATA,sha256=UJNDRZerzoHkTMmjU_v9Z4BCTt_2E0zl7JnKot8P6es,500
30
- bcmd-0.5.11.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
31
- bcmd-0.5.11.dist-info/entry_points.txt,sha256=rHJrP6KEQpB-YaQqDFzEL2v88r03rxSfnzAayRvAqHU,39
32
- bcmd-0.5.11.dist-info/top_level.txt,sha256=-KrvhhtBcYsm4XhcjQvEcFbBB3VXeep7d3NIfDTrXKQ,5
33
- bcmd-0.5.11.dist-info/RECORD,,
28
+ bcmd/tasks/wasabi.py,sha256=yZHlMxbhR_KOcRsaKjqF6OaKE17VetQ5urbkQXbI1w4,2331
29
+ bcmd-0.5.12.dist-info/METADATA,sha256=7yqV9RoAaFlejfVkesMDKjikAIV59ceR_xiJ8rNE9Ms,500
30
+ bcmd-0.5.12.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
31
+ bcmd-0.5.12.dist-info/entry_points.txt,sha256=rHJrP6KEQpB-YaQqDFzEL2v88r03rxSfnzAayRvAqHU,39
32
+ bcmd-0.5.12.dist-info/top_level.txt,sha256=-KrvhhtBcYsm4XhcjQvEcFbBB3VXeep7d3NIfDTrXKQ,5
33
+ bcmd-0.5.12.dist-info/RECORD,,
File without changes