Perl File::Path 模块

72 篇文章 31 订阅 ¥39.90 ¥99.00
Perl的File::Path模块提供mkpath和rmtree函数,用于创建和删除目录树。mkpath可以创建多级目录,rmtree类似Unix的`rm -r`,用于删除子目录树。这两个函数都接受三个参数,分别用于指定路径、是否显示操作信息和权限检查。在使用rmtree时需要注意可能存在的安全性问题和竞态条件。
摘要由CSDN通过智能技术生成
perldoc  File::Path
NAME
       File::Path - create or remove directory trees

SYNOPSIS
           use File::Path;

           mkpath(['/foo/bar/baz', 'blurfl/quux'], 1, 0711);
           rmtree(['foo/bar/baz', 'blurfl/quux'], 1, 1);

DESCRIPTION
       The "mkpath" function provides a convenient way to create directories, even if your "mkdir" kernel call won't create more than one
       level of directory at a time.  "mkpath" takes three arguments:

mkpath 函数提供了便利的方式来创建目录,提供了3个参数

       ?   the name of the path to create, or a reference to a list of paths to create,

         要创建的路径名字,或者相关的一系列路径

       ?   a boolean value, which if TRUE will cause "mkpath" to print the name of each direc
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

scan724

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值