找回密码
 注册
关于网站域名变更的通知
查看: 602|回复: 0
打印 上一主题 下一主题

[求助]请问怎么用skill检查某个盘符是否存在?

[复制链接]
  • TA的每日心情
    开心
    2022-5-6 15:29
  • 签到天数: 34 天

    [LV.5]常住居民I

    跳转到指定楼层
    1#
    发表于 2019-8-16 15:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

    EDA365欢迎您登录!

    您需要 登录 才可以下载或查看,没有帐号?注册

    x
    本帖最后由 leilei4908 于 2019-8-16 17:08 编辑

    isDir只能判断某个路径(或者说文件夹)是否存在
    无法用isDir("F:/")这个指令判断F盘是否存在
    各位有什么方法可以检查某个盘符是否存在呢?
    主要是想直接创建多级文件夹
    比如想创建F:/123/234,但是F:/123并不存在
    那么可以用递归的方式,一级级的创建文件夹
    但前提是,F这个盘符是存在的
    需要工具判断盘符是否存在
    这里怎么总会生成乱码啊。。skill

    sklangref.pdf 里倒是有一个工具,就是我想要的
    createDirHier
    createDirHier(
    t_pathName
    )
    => t/nil
    Description
    Creates all directories specified in the given SKILL path that do not already exist
    The permissions associated with new directories are subject to the file creation mask on
    systems supporting that concept. If the directory with the specified name already exists, nil
    is returned. The directory names in the given SKILL path can be specified with either absolute
    or relative; the SKILL path is used in the latter case.
    Note: A path that is anchored to the current directory, for example, ./, ../, or ../../.., etc., is not
    considered as a relative path.

    但是只能16.6及以上版本使用



    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    推荐内容上一条 /1 下一条

    EDA365公众号

    关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

    GMT+8, 2025-8-21 01:19 , Processed in 0.109375 second(s), 24 queries , Gzip On.

    深圳市墨知创新科技有限公司

    地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

    快速回复 返回顶部 返回列表