Skip to content

Commit c1308e6

Browse files
committed
Fix local file name
1 parent e737dd6 commit c1308e6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

nxc/protocols/nfs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,8 +297,7 @@ def put_file(self):
297297
file_name = ""
298298

299299
# Do a bit of smart handling for the file paths
300-
if "/" in local_file_path:
301-
file_name = local_file_path.split("/")[-1]
300+
file_name = local_file_path.split("/")[-1] if "/" in local_file_path else local_file_path
302301
if not remote_file_path.endswith("/"):
303302
remote_file_path += "/"
304303

0 commit comments

Comments
 (0)