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