ARTIFACTORY: What to do when you want to resolve a Directory Location but also Files within the Directory in Artifactory Remote Repositories

ARTIFACTORY: What to do when you want to resolve a Directory Location but also Files within the Directory in Artifactory Remote Repositories

AuthorFullName__c
Derek Pang
articleNumber
000005640
ft:sourceType
Salesforce
FirstPublishedDate
2023-03-21T10:55:20Z
lastModifiedDate
2023-03-21
VersionNumber
2

There are some use cases where you want to get the result of a folder from an upstream repository for use in a script or some other tool. The problem with this is that requesting a folder instead of a file will return and cache the HTML output of that location into the remote repository.
Subsequent requests further into that location will cause an issue as now Artifactory has cached a file there when it is actually a folder.

To resolve this issue we will be configuring our repositories in a particular way so that we will be able to resolve both folders and files from an upstream site.
In this article, we will be utilizing Artifactory 7.55.6 and the screenshots that you see will be from this version. The upstream site where we will be demonstrating this use case is “https://releases.hashicorp.com”.