Closed mdlavin closed 4 years ago
Are you sure that file exists?
Cause, I just did this and it worked perfectly:
bb.source
.read({
node: 'master',
path: '.modules/init.sh',
repo_slug: '.dotfiles',
workspace: 'MunifTanjim'
})
Well that's embarrassing 🤦 . It looks like shape of errors changed from v1 to v2 and my old method of detecting a missing file was not triggered. Sorry about the confusion; Completely my fault.
😅 no worries.
When fetching files nested in subdirectories, it looks like the
source.read
API might be URL escaping the paths separators in the path argument. Pre-v2 I had code that was fetching nested files, but now it fails with errors like this: