From 379eb57e918efd51947611f21de2f3a930c540d5 Mon Sep 17 00:00:00 2001 From: xieguigang Date: Mon, 28 Jan 2019 16:51:42 +0800 Subject: [PATCH] add a file url test helper --- ossutil/Aspera.vb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ossutil/Aspera.vb b/ossutil/Aspera.vb index 2126d6b..ba1b77d 100644 --- a/ossutil/Aspera.vb +++ b/ossutil/Aspera.vb @@ -1,4 +1,5 @@ -Imports System.Text +Imports System.Runtime.CompilerServices +Imports System.Text Imports Microsoft.VisualBasic.CommandLine.InteropService ''' @@ -23,6 +24,11 @@ Public Class Aspera : Inherits InteropService Call MyBase.New(bin) End Sub + + Public Shared Function IsAsperaProtocol(url As String) As Boolean + Return InStr(url, "fasp://", CompareMethod.Text) = 1 + End Function + ''' ''' 单位都是MB '''