Skip to content

Commit

Permalink
Fix url filepaths
Browse files Browse the repository at this point in the history
  • Loading branch information
ehennestad committed Mar 6, 2024
1 parent dd7c916 commit 08785fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion +bot/+internal/+fileresource/+abstract/S3Bucket.m
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@
%getDataFileURI Get URI for a data file (file belonging to item)
filename = obj.getRelativeFileUriPath(itemObject, fileNickname, varargin{:});
baseURI = obj.getDataFolderUri();
strURI = uriJoin(baseURI, filename);

fileNameParts = strsplit(filename, filesep);
% Todo: Use fullfile if using file:// scheme
strURI = uriJoin(baseURI, fileNameParts{:});
end

function strURI = getItemTableURI(obj, itemType)
Expand Down

0 comments on commit 08785fb

Please sign in to comment.