Esempio 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);
            }
        }
Esempio 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 List <String> getURLList(string containerName)
 {
     return(containerManager.getURLList(containerName));
 }