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] DBFSPath is missing stat() method #143

Closed
ericvergnaud opened this issue Sep 9, 2024 · 0 comments
Closed

[BUG] DBFSPath is missing stat() method #143

ericvergnaud opened this issue Sep 9, 2024 · 0 comments

Comments

@ericvergnaud
Copy link
Contributor

ericvergnaud commented Sep 9, 2024

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

@ericvergnaud ericvergnaud changed the title [BUG] DBFSPath is missing stat() method #142 [BUG] DBFSPath is missing stat() method Sep 9, 2024
nfx pushed a commit that referenced 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.
@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.
@nfx nfx closed this as completed Sep 24, 2024
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

No branches or pull requests

2 participants