Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lib/src/solid/utils/get_url_helper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
///
/// Authors: Anushka Vidanage, Dawei Chen
/// Authors: Anushka Vidanage, Dawei Chen, Jess Moore

library;

Expand Down Expand Up @@ -110,8 +110,10 @@ Future<String> filenameToResourceUrl({
isFileUrl = true;
}

// If not already a url, get url
if (!isExternalRes && !isFileUrl) {
// If resource name lacks a url scheme, is not an
// externally owned resource and is not already
// declared as a url, then form url from resource name
if (!Uri.parse(fileName).hasScheme && !isExternalRes && !isFileUrl) {
// Get the file path
// Ensure path uses correct path separators and
// has app data dir prepended.
Expand Down
Loading