We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7fa6aa9 commit a568788Copy full SHA for a568788
1 file changed
OMPython/OMCSession.py
@@ -428,6 +428,13 @@ def size(self) -> int:
428
429
raise OMCSessionException(f"Error reading file size for path {self.as_posix()}!")
430
431
+ def stat(self):
432
+ """
433
+ The function stat() cannot be implemented using OMC.
434
435
+ raise NotImplementedError("The function stat() cannot be implemented using OMC; "
436
+ "use size() to get the file size.")
437
+
438
439
if sys.version_info < (3, 12):
440
0 commit comments