I am using dbutils.fs.cp(sourcefilepath,destinationfilepath) query to copy a file from one location to another from the azure storages.My source file path is /mnt/testing/StudentA/Test.csv and destination file path is /mnt/Testing_1/. in this case the dbutils is running but in the destination it creates a file with a folder name(StudentA) also it creates a folder called StudentA and place the Test.csv.
Databricks dbutils.fs.cp
1k Views Asked by Deepak Kumar At
1
There are 1 best solutions below
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in COPY
- What is correct way to copy struct instance with fields in Go?
- On paste StartFragment - EndFragment Postman issue
- Copy paste a single value from within a cell to another cell
- Char array, char pointer, works in one case but not the other?
- Macro to copy, rename and organize a template worksheet
- Stored procedure with copy statement keeps running when called
- How can creation times be preserved while copying on Mac?
- Automate buildozer with windows bat file and ubuntu script
- If Cell contains specific text in col A copy cell from Col C into Col F stacked
- Why do I have a 403 error when trying to save a website
- SSRS Report - Graph when exported is compressed into a graphic
- Need to copy multiple cells in the same row of data from one sheet to another when a Checkbox is checked
- Is there a way to set an open workbook as a source without having the file name?
- How do you deep copy a variant of pointers in C++?
- Python Copy dictionary
Related Questions in AZURE-DATABRICKS
- ingesting high volume small size files in azure databricks
- includeExistingFiles: false does not work in Databricks Autoloader
- Problem to add service principal permissions with terraform
- Filter 30 unique product ids based on score and rank using databricks pyspark
- Tools for fast aggregation
- How to find location of all tables under a schema in databricks
- extraneous input 'timestamp' expecting {<EOF>, ';'}(line 1, pos 54)
- How to avoid being struct column name written to the json file?
- Understanding least common type in databricks
- Azure DataBricks - Looking to query "workflows" related logs in Log Analytics (ie Name, CreatedBy, RecentRuns, Status, StartTime, Job)
- Updating a Delta Tables using a "change feed like" JSON every day
- Issue with Databricks Workspace Conversion: Python Files Automatically Converted to Notebooks upon Merge
- use the output of notebook1 in notebook2
- Unable to read data from ADLS gen 2 in Azure Databricks
- Combine SQL cell output in a markdown cell in Databricks Notebook
Related Questions in DBUTILS
- use the output of notebook1 in notebook2
- read multiple files using utilities in databricks
- Pyspark - Parallelize filesystem operations
- Databricks Python run all cells in another notebook except the last
- Put secret scope - databricks
- Is there any way to push down a filter when running "dbutils.fs.ls" in a Databricks notebook?
- How can I call my Python function in my javaScript file?
- Databricks dbutils.fs.cp
- Databricks parallelize file system operations
- No Importing db_connect from dbutils
- DBUtils: ModuleNotFoundError: No module named 'pyspark.dbutils'
- Github Actions: Problem with dbutils when running pytest
- java.io.FileNotFoundException on local databricks directory but directory exists
- Importing dbutils package in python module on databricks
- Databricks "dbutils": run multiple notebooks in one notebooks
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I agree with @Chen Hirsh.
This code won't copy the folder, it will only create a new
mycsv2.csvfile in the target location.The folders copy as mentioned in your question will be copied like below only when you use recursive
Truein the code.So, recheck your code and file paths. If you don't have any usage with source files, you can also try
dbutils.fs.mvas a workaround.