gpt4 book ai didi

Dart : check if a directory exist

转载 作者:行者123 更新时间:2023-12-03 02:49:52 28 4
gpt4 key购买 nike

在 Dart 中,想检查目录是否存在但不知道该目录的子字符串:

例如:

dir = preview/1552146038702.jpg.1--001--001.html.test.jpg



我试过 :
io.Directory(await dir).exists().then((exist){

但在目录中我不知道 1--001--001.html

任何的想法?

最佳答案

关于 Dart : check if a directory exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55079129/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com