> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# If 文件夹存在

## 指令说明

**描述：** 判断目标文件夹是否存在。

## 参数说明

<Tabs>
  <Tab title="常规">
    <img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/condition/images/if-folder-01-panel.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=21c3f462aebc38fcce61cc206d8d7c0c" alt="If 文件夹存在指令参数面板" width="660" height="326" data-path="helpcenter/commands/condition/images/if-folder-01-panel.png" />

    | 参数        | 说明                                  |
    | --------- | ----------------------------------- |
    | **文件夹路径** | 输入或选择目标文件夹的绝对路径，从盘符开始，如：`D:\八爪鱼文件夹` |
    | **文件夹是否** | 存在 / 不存在                            |
  </Tab>

  <Tab title="高级">
    本指令暂无高级参数。
  </Tab>
</Tabs>

## 使用示例

<img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/condition/images/if-folder-02.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=2dd56feb3de6aab50668b4044375a8a8" alt="If 文件夹存在 - 流程搭建" width="1185" height="438" data-path="helpcenter/commands/condition/images/if-folder-02.png" />

**该流程执行逻辑：**

使用【If 文件夹存在】指令判断文件夹路径是否存在

若存在则执行【打印日志】指令打印 "文件夹存在"

否则执行【打印日志】指令打印 "文件夹不存在"

### 效果展示

<img src="https://mintcdn.com/bazhuayu-rpa-docs/54VOmvcVz9x5vq70/helpcenter/commands/condition/images/if-folder-01.png?fit=max&auto=format&n=54VOmvcVz9x5vq70&q=85&s=4521b243bfd6d640a8eb7711e33e3519" alt="If 文件夹存在 - 效果展示" width="1172" height="320" data-path="helpcenter/commands/condition/images/if-folder-01.png" />

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
