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

Feature: Check if a DataBricks path or dir exists #425

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mustious
Copy link

@mustious mustious commented Nov 6, 2023

Changes

Add a method to _FsUtils of dbutils.py to check if a directory exists in DataBricks FileSystem (DBFS). There is a general difficulty faced by users in checking whether not a path/dir exists in DBFS which can be seen here in Questions from StackOverFlow and DataBricks Community (, which I have commented on). This addition uses existing class dbfs_ext.DbfsExt which is already an attribute of _FsUtil.

Tests

  • make test run locally
  • make fmt applied
  • relevant integration tests applied

@mustious mustious marked this pull request as draft November 6, 2023 14:14
@mustious mustious marked this pull request as ready for review November 6, 2023 14:37
@mustious mustious marked this pull request as draft November 20, 2023 17:47
@mustious mustious marked this pull request as ready for review November 22, 2023 13:26
@mustious mustious marked this pull request as draft January 19, 2024 23:58
@mustious mustious marked this pull request as ready for review January 19, 2024 23:59
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 this pull request may close these issues.

None yet

1 participant