Code Monkey home page Code Monkey logo

Comments (4)

EmmaZhu avatar EmmaZhu commented on September 13, 2024 1

As we have following in mail, we are considering to have a callback for this to change destination's name before the transfer really happens. A private build drop has been provided, and we are also considering to add the callback in public released DMLib for others.

from azure-storage-net-data-movement.

vinjiang avatar vinjiang commented on September 13, 2024

@EmmaZhu , please follow-up.

from azure-storage-net-data-movement.

andriysavin avatar andriysavin commented on September 13, 2024

Here is my scenario: I'm migrating files from Azure Files to Azure Blobs, and in Files I have certain directory structure. In blob storage I don't want to mirror that directory structure, only want flat blobs list. Also, source files have extensions, and I don't want to have extensions in blob names. So essentially I need at least a callback which gives me a chance to tweak the destination location path. Currently, this logic is hardcoded in different INameResolver implementations (AzureFileToAzureNameResolver for my case), and there is no way to provide my own or somehow else take part in this process.

As a workaround, I had to build my own version of the library where AzureFileToAzureNameResolver is made public and allows assigning global (static) callback delegate to override the logic. I can afford this dirty trick as the migration tool I'm building is for one-time use. But longer-living software needs simpler and more robust solution. I would also say that described scenario would be nice to support in the AzCopy as well.

from azure-storage-net-data-movement.

pantosha avatar pantosha commented on September 13, 2024

I have a similar issue. My scenario: I'm developing a tool for migrating local files to Azure Blobs. Local files have a certain directory structure. In blob storage files should be stored as a flat list. Blob names are formed from parts of a local file path.

A callback or special class can solve this issue.

from azure-storage-net-data-movement.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.