'Is there a way to serve a directory using map local and Charles?

I have a network request in the form of:

http://www.blahblah.com/folder/version/dist

I would like to add a rule to the Map Local option in Charles, in order to serve a directory that looks like:

Users/me/Documents/code/project/dist

The file structure of both dist folders are the same. My current request rule is: http://www.blahblah.com/folder/*/dist, and I'm asking it to serve Users/me/Documents/code/project/dist in its place, however, the files still come from the original requested resource.

Is there a way to proxy a whole directory?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source