From 0d067da38cf5cb20123e369798dc92038cd1b99e Mon Sep 17 00:00:00 2001 From: Alexander Neff Date: Thu, 2 Jul 2026 13:43:08 -0400 Subject: [PATCH] Fix file uploading --- nxc/protocols/nfs.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nxc/protocols/nfs.py b/nxc/protocols/nfs.py index 2dc16ac5..8bf0b23b 100644 --- a/nxc/protocols/nfs.py +++ b/nxc/protocols/nfs.py @@ -431,6 +431,10 @@ class nfs(connection): self.logger.fail(f"{local_file_path} does not exist.") return + # Do a bit of smart handling for the remote file path + if remote_file_path.endswith("/"): + file_name = os.path.basename(local_file_path) + self.logger.display(f"Uploading from {local_file_path} to {remote_file_path}") try: # Connect to NFS