mirror of
https://git-qiuchenly.yltfspace.com/QiuChenly/corepatch
synced 2025-11-25 06:48:07 +08:00
12 lines
182 B
Ruby
12 lines
182 B
Ruby
# frozen_string_literal: true
|
|
|
|
# 检查文件是否存在
|
|
# 参数:
|
|
# file_path 文件路径
|
|
# 返回值:
|
|
# 是否存在
|
|
def file_exist?(file_path)
|
|
File.exist?(file_path)
|
|
end
|
|
|