src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py

branch
eric7
changeset 11040
a4fd43ac7923
parent 10949
2057b1b198a5
child 11090
f5f5f5803935
--- a/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py	Tue Nov 05 10:41:51 2024 +0100
+++ b/src/eric7/RemoteServerInterface/EricServerFileSystemInterface.py	Wed Nov 06 09:04:03 2024 +0100
@@ -583,6 +583,18 @@
 
         return accessOK
 
+    def isEmpty(self, name):
+        """
+        Public method to check, if the given name is empty (i.e. just the remote
+        name indicator).
+
+        @param name file or directory path to be checked
+        @type str
+        @return flag indicating an empty path
+        @rtype bool
+        """
+        return not bool(FileSystemUtilities.plainFileName(name))
+
     def mkdir(self, directory, mode=0o777):
         """
         Public method to create a new directory on the eric-ide server.

eric ide

mercurial