private static ResourceDescriptor from(ResourceType type, String bucketName, String bucketLocation,
                                           List<String> paths, boolean isFolder) {
        boolean isEmptyElements = paths.isEmpty();
        String name = isEmptyElements ? null : paths.get(paths.size() - 1);
        List<String> parentFolders = isEmptyElements ? List.of() : paths.subList(0, paths.size() - 1);
        return new ResourceDescriptor(type, name, parentFolders, bucketName, bucketLocation, isFolder);
    }
Azure blob storage do not support files with .(dot) (or sequence of dots) at the end of the file name or folder
<a href="https://learn.microsoft.com/en-us/rest/api/storageservices/Naming-and-Referencing-Containers--Blobs--and-Metadata?redirectedfrom=MSDN#blob-names">reference</a>

@param resourceToUpload resource to upload
@return true if provided resource has valid path to store, otherwise - false
server/src/main/java/com/epam/aidial/core/server/util/ResourceDescriptorFactory.java