Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[OMCPath] prevent usage of stat() - not implemented using OMC
  • Loading branch information
syntron committed Nov 5, 2025
commit 069784016ef9c32a9e3f7ee7b5c924e68ceb69ff
7 changes: 7 additions & 0 deletions OMPython/OMCSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,13 @@ def size(self) -> int:

raise OMCSessionException(f"Error reading file size for path {self.as_posix()}!")

def stat(self):
"""
The function stat() cannot be implemented using OMC.
"""
raise NotImplementedError("The function stat() cannot be implemented using OMC; "
"use size() to get the file size.")


if sys.version_info < (3, 12):

Expand Down