We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e737dd6 commit c1308e6Copy full SHA for c1308e6
1 file changed
nxc/protocols/nfs.py
@@ -297,8 +297,7 @@ def put_file(self):
297
file_name = ""
298
299
# Do a bit of smart handling for the file paths
300
- if "/" in local_file_path:
301
- file_name = local_file_path.split("/")[-1]
+ file_name = local_file_path.split("/")[-1] if "/" in local_file_path else local_file_path
302
if not remote_file_path.endswith("/"):
303
remote_file_path += "/"
304
0 commit comments