databrickslabs / brickster

R Toolkit for Databricks
https://databrickslabs.github.io/brickster/
Apache License 2.0
49 stars 8 forks source link

Volume FileSystem Functions #33

Closed zacdav-db closed 1 year ago

zacdav-db commented 1 year ago

Adding:

e.g.

# write local file to volume
db_volume_write(
  file = "~/Desktop/test.csv",
  path = "Volumes/zacdav/default/misc/test.csv"
)

# download file from volume
db_volume_read("Volumes/zacdav/default/misc/test.csv", "~/Desktop/test2.csv")
file.remove("~/Desktop/test2.png")

# check if file exists in volume
db_volume_file_exists("Volumes/zacdav/default/misc/test.csv")

# delete file in volume
db_volume_delete("Volumes/zacdav/default/misc/test.csv")

db_volume_file_exists("Volumes/zacdav/default/misc/test.csv")
codecov-commenter commented 1 year ago

Codecov Report

Merging #33 (78801a2) into main (72bb8b6) will decrease coverage by 0.19%. Report is 3 commits behind head on main. The diff coverage is 2.73%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

@@            Coverage Diff             @@
##             main      #33      +/-   ##
==========================================
- Coverage   11.66%   11.47%   -0.19%     
==========================================
  Files          22       23       +1     
  Lines        2700     2744      +44     
==========================================
  Hits          315      315              
- Misses       2385     2429      +44     
Files Changed Coverage Δ
R/clusters.R 0.00% <0.00%> (ø)
R/volume-fs.R 0.00% <0.00%> (ø)
R/warehouses.R 0.00% <0.00%> (ø)
R/package-auth.R 44.18% <40.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more