Ejemplo n.º 1
0
        public static void UploadFileFromRemoteFolder(BlobContainerManager source, string sourceContainerName, string sourceDirectoryName, BlobContainerManager destination, string destinationContainerName, string destinationDirectoryName)
        {
            List <String> filesToBeCopied = source.getURLList(sourceContainerName, sourceDirectoryName);

            foreach (string uri in filesToBeCopied)
            {
                string fileName = URIUtilities.filenameFromURI(uri);
                destination.UploadFromURI(uri, destinationContainerName, destinationDirectoryName, fileName);
                //destination.UploadFromURI(uri, destinationContainerName, destinationDirectoryName, fileName);
            }
        }
Ejemplo n.º 2
0
        public static void UploadFileFromRemoteFolder(BlobContainerManager source, string sourceContainerName, string sourceDirectoryName, BlobContainerManager destination, string destinationContainerName, string destinationDirectoryName, List <string> fileTypes)
        {
            List <String> filesToBeCopied = source.getURLList(sourceContainerName, sourceDirectoryName);

            foreach (string uri in filesToBeCopied)
            {
                string fileName = URIUtilities.filenameFromURI(uri);
                if (CheckFileExtensions.IsAllowedType(fileName, fileTypes))
                {
                    destination.UploadFromURI(uri, destinationContainerName, destinationDirectoryName, fileName);
                }
            }
        }
 public void copyFilesFromAnotherAzureBlob(BlobContainerManager b, string sourceContainerName, string sourceDirectoryName, string destinationContainerName, string destinationDirectoryName, List <string> fileTypes)
 {
     BlobContainerManager.UploadFileFromRemoteFolder(b, sourceContainerName, sourceDirectoryName, containerManager, destinationContainerName, destinationDirectoryName, fileTypes);
 }
 public SatyamJobStorageAccountAccess()
 {
     containerManager = new BlobContainerManager();
     string status = containerManager.Connect(connection_string);
 }