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 '''