File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ class FileSystem(Enum):
46
46
class Main :
47
47
""" Main class """
48
48
49
- __version__ = '0.2.6-106 '
50
- __date__ = '2024-04-19 '
49
+ __version__ = '0.2.7-119 '
50
+ __date__ = '2024-07-05 '
51
51
__name = 'kubectl-cp'
52
52
53
53
def __init__ (self ):
@@ -341,9 +341,9 @@ class Copy:
341
341
log .debug (' Command: %s' , cmd )
342
342
try :
343
343
subprocess .run (shlex .split (cmd ),
344
- check = True , capture_output = True )
344
+ check = True , capture_output = False )
345
345
except subprocess .CalledProcessError :
346
- log .critical (' Failed to create directory' )
346
+ log .critical ('Failed to create directory' )
347
347
return True
348
348
349
349
for file_name , src_path in zip (files_local , files_full_path ):
@@ -378,7 +378,7 @@ class Copy:
378
378
def __join_paths (self , base_path : str , files : list [str ]) -> list [str ]:
379
379
result : list [str ] = []
380
380
for i in files :
381
- result .append (os .path .join ( base_path , i ))
381
+ result .append (os .path .normpath ( f' { base_path } { i } ' ))
382
382
return result
383
383
384
384
def __list_local_directory_recursively (self , path : str ) \
You can’t perform that action at this time.
0 commit comments