Coder Social home page Coder Social logo

azure-blob-explorer's Introduction

Azure Blob Explorer

A simple and easy to use library to upload, download and delete all your assets/files/folders to Azure blob containers.

Instillation

Via Maven

<dependency>
  <groupId>com.gollahalli.azure</groupId>
  <artifactId>azure-blob-explorer</artifactId>
  <version>1.1.1</version>
</dependency>

Usage

To upload a file or a folder:

import com.gollahalli.azure.AzureBlobUpload;

AzureBlobUpload azureBlobUpload = new AzureBlobUpload("account name", "account key", "container name");

// Single file.
azureBlobUpload.uploadFromFile("path/to/file.txt");

// Folder
azureBlobUpload.uploadFromFolder("path/to/folder/");

To Download a file or a folder:

import com.gollahalli.azure.AzureBlobDownload;

AzureBlobDownload azureBlobDownload = new AzureBlobDownload("account name", "account key", "container name");

// Single file.
azureBlobDownload.downloadFile("fileName.txt", "path/to/download/");

// Folder
azureBlobUpload.downloadFolder("./folderName/", "path/to/download/");

To delete a file, folder or a container:

AzureBlobDelete blobDelete = new AzureBlobDelete("account name", "account key", "container name");

// Delete file.
blobDelete.deleteFile("blobName/fileName.txt");

// Delete a blob folder and its content
blobDelete.deleteBlob("blobName/BlobToDelete/");

// Delete container
blobDelete.deleteContainer();

azure-blob-explorer's People

Contributors

akshaybabloo avatar dependabot-support avatar dependabot[bot] avatar lgtm-migrator avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

lgtm-migrator

azure-blob-explorer's Issues

Allow option to escape special characters

some files such as ${sys can be uploaded but they cannot be download because the package turns that into $%7Bsys. Need to encode everything at UTF-8 or escape the special characters.

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.