Skip to content

Commit 08785fb

Browse files
committed
Fix url filepaths
1 parent dd7c916 commit 08785fb

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

+bot/+internal/+fileresource/+abstract/S3Bucket.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@
9696
%getDataFileURI Get URI for a data file (file belonging to item)
9797
filename = obj.getRelativeFileUriPath(itemObject, fileNickname, varargin{:});
9898
baseURI = obj.getDataFolderUri();
99-
strURI = uriJoin(baseURI, filename);
99+
100+
fileNameParts = strsplit(filename, filesep);
101+
% Todo: Use fullfile if using file:// scheme
102+
strURI = uriJoin(baseURI, fileNameParts{:});
100103
end
101104

102105
function strURI = getItemTableURI(obj, itemType)

0 commit comments

Comments
 (0)