Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] WorkspacePath is missing stat() method #142

Closed
ericvergnaud opened this issue Sep 9, 2024 · 0 comments · Fixed by #144
Closed

[BUG] WorkspacePath is missing stat() method #142

ericvergnaud opened this issue Sep 9, 2024 · 0 comments · Fixed by #144

Comments

@ericvergnaud
Copy link
Contributor

WorkspacePath does not implement stat(), which is required to access corresponding info from its cached ObjectInfo fields such as created_at or modified_at as a private field

@ericvergnaud ericvergnaud changed the title [BUG] WorkspacePath is missing a modified_at property [BUG] WorkspacePath is missing stat() method Sep 9, 2024
@nfx nfx closed this as completed in #144 Sep 13, 2024
@nfx nfx closed this as completed in 36fc873 Sep 13, 2024
nfx added a commit that referenced this issue Sep 13, 2024
* add missing stat() methods to DBFSPath and WorkspacePath ([#144](#144)). The `stat()` method has been added to both `DBFSPath` and `WorkspacePath` classes, addressing issues [#142](#142) and [#143](#143). This method, which adheres to the Posix standard, returns file status in the `os.stat_result` format, providing access to various metadata attributes such as file size, last modification time, and creation time. By incorporating this method, developers can now obtain essential file information for Databricks File System (DBFS) and Databricks Workspace paths when working with these classes. The change includes a new test case for `stat()` in the `test_paths.py` file to ensure the correctness of the method for both classes.
@nfx nfx mentioned this issue Sep 13, 2024
nfx added a commit that referenced this issue Sep 13, 2024
* add missing stat() methods to DBFSPath and WorkspacePath
([#144](#144)). The
`stat()` method has been added to both `DBFSPath` and `WorkspacePath`
classes, addressing issues
[#142](#142) and
[#143](#143). This
method, which adheres to the Posix standard, returns file status in the
`os.stat_result` format, providing access to various metadata attributes
such as file size, last modification time, and creation time. By
incorporating this method, developers can now obtain essential file
information for Databricks File System (DBFS) and Databricks Workspace
paths when working with these classes. The change includes a new test
case for `stat()` in the `test_paths.py` file to ensure the correctness
of the method for both classes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant