增强ToolFile对斜杠的判断与相关行为

This commit is contained in:
2025-10-14 17:09:04 +08:00
parent 97c57f65df
commit 81209e85ee
3 changed files with 41 additions and 29 deletions

View File

@@ -3,10 +3,8 @@ import os
from time import sleep
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from Convention.Runtime.Interaction import *
from Convention.Runtime.File import *
download = Interaction("http://www.liubai.site:4000/d/storage/Convention/Convention-Unity-Demo/TEST/song.mp3?sign=pIIWFqeous--i4H5fNIpqQsS0HeMinSRA_bztq6Czgo=:0")
file = download.Download("./[Test]/test.mp3")
sleep(5)
file.Remove()
file = ToolFile("[Test]")|"temp"|None
print(file.MustExistsPath())