Compare commits
2 Commits
fb2e8a6f6c
...
98fd711ea0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
98fd711ea0 | ||
|
|
0008d0f3ba |
@@ -13,7 +13,7 @@ Imports System.Runtime.InteropServices
|
||||
<Assembly: AssemblyCompany("")>
|
||||
<Assembly: AssemblyProduct("Modules.Windream")>
|
||||
<Assembly: AssemblyCopyright("Copyright © 2023")>
|
||||
<Assembly: AssemblyTrademark("1.9.1.0")>
|
||||
<Assembly: AssemblyTrademark("1.9.2.0")>
|
||||
|
||||
<Assembly: ComVisible(False)>
|
||||
|
||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
||||
' übernehmen, indem Sie "*" eingeben:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("1.9.1.0")>
|
||||
<Assembly: AssemblyFileVersion("1.9.1.0")>
|
||||
<Assembly: AssemblyVersion("1.9.2.0")>
|
||||
<Assembly: AssemblyFileVersion("1.9.2.0")>
|
||||
|
||||
@@ -1510,27 +1510,11 @@ Public Class Windream
|
||||
Return False
|
||||
End Try
|
||||
End Function
|
||||
Public Function VersionWMFilename(pPath As String, pExt As String)
|
||||
Return _fileSystem.GetVersionedFilename(pPath)
|
||||
|
||||
'Dim rNewFilepath As String = pPath
|
||||
'pPath = GetNormalizedPath(pPath)
|
||||
'Dim oPath = pPath.Substring(0, pPath.LastIndexOf("\"))
|
||||
'Dim oFilename = pPath.Substring(pPath.LastIndexOf("\") + 1, pPath.Length - pPath.LastIndexOf("\") - 1)
|
||||
'Dim oCheck = oFilename
|
||||
'Dim oSplit As List(Of String) = oFilename.Split("~").ToList()
|
||||
'oFilename = oFilename.Replace(pExt, "")
|
||||
'Dim oCount As Integer = 2
|
||||
'Do While TestFileExists(rNewFilepath) = True
|
||||
' oFilename = oFilename.Replace(pExt, "")
|
||||
' Dim oVersion = "~" + (oCount - 1).ToString
|
||||
' oFilename = oFilename.Replace(oVersion, "")
|
||||
' oFilename = oFilename & "~" & oCount & pExt
|
||||
' oCount += 1
|
||||
' rNewFilepath = oPath + "\" + oFilename
|
||||
'Loop
|
||||
'Return rNewFilepath
|
||||
Public Function VersionWMFilename(pPath As String, pExt As String)
|
||||
Return _fileSystem.GetVersionedFilenameWithFilecheck(pPath, AddressOf TestFileExists)
|
||||
End Function
|
||||
|
||||
Public Function TestFolderExists(Path As String) As Boolean
|
||||
Return TestObjectExists(GetNormalizedPath(Path, False), WMEntityFolder)
|
||||
End Function
|
||||
|
||||
Reference in New Issue
Block a user