public static boolean isValidResourcePath(ResourceDescriptor resourceToUpload) {
        String resourceName = resourceToUpload.getName();

        if (resourceName.endsWith(".")) {
            return false;
        }

        for (String element : resourceToUpload.getParentFolders()) {
            if (element.endsWith(".")) {
                return false;
            }
        }

        return true;
    }
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