MicroPythonDevicces: added a method to indicate that a device allows access to its file system via a local directory. micropython

Sat, 10 Aug 2019 20:05:50 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 10 Aug 2019 20:05:50 +0200
branch
micropython
changeset 7129
3cc19aec959a
parent 7128
0d72ed127335
child 7130
6014d37d9683

MicroPythonDevicces: added a method to indicate that a device allows access to its file system via a local directory.

eric6/MicroPython/CircuitPythonDevices.py file | annotate | diff | comparison | revisions
eric6/MicroPython/MicroPythonDevices.py file | annotate | diff | comparison | revisions
--- a/eric6/MicroPython/CircuitPythonDevices.py	Sat Aug 10 13:52:06 2019 +0200
+++ b/eric6/MicroPython/CircuitPythonDevices.py	Sat Aug 10 20:05:50 2019 +0200
@@ -118,6 +118,15 @@
         """
         return True, ""
     
+    def supportsLocalFileAccess(self):
+        """
+        Public method to indicate file access via a local directory.
+        
+        @return flag indicating file access via local directory
+        @type bool
+        """
+        return True
+    
     def getWorkspace(self):
         """
         Public method to get the workspace directory.
--- a/eric6/MicroPython/MicroPythonDevices.py	Sat Aug 10 13:52:06 2019 +0200
+++ b/eric6/MicroPython/MicroPythonDevices.py	Sat Aug 10 20:05:50 2019 +0200
@@ -271,6 +271,15 @@
         """
         pass
     
+    def supportsLocalFileAccess(self):
+        """
+        Public method to indicate file access via a local directory.
+        
+        @return flag indicating file access via local directory
+        @type bool
+        """
+        return False        # default
+    
     def getWorkspace(self):
         """
         Public method to get the workspace directory.

eric ide

mercurial