Warning: SimpleXMLElement::asXML(E:\phpstudy_pro\zhutiblog\sitemaps\sitemap_52.xml.tmp): failed to open stream: Permission denied in E:\phpstudy_pro\zhutiblog\dd.php on line 1322
Node fs.chmod function | API Reference | Bun - AI智能索引
温馨提示:本站仅提供公开网络链接索引服务,不存储、不篡改任何第三方内容,所有内容版权归原作者所有
AI智能索引来源:http://www.bun.com/reference/node/fs/chmod
点击访问原文链接

Node fs.chmod function | API Reference | Bun

Node fs.chmod function | API Reference | BunBuildDocsReferenceGuidesBlogDiscord/node:fs/chmodNchmod

Search the reference...

/

BuildDocsReferenceGuidesBlogDiscord/node:fs/chmodNchmod

namespace

fs.chmod { if (err) throw err; console.log('The permissions for file "my_file.txt" have been changed!'); }); ```" data-algolia-static="false" data-algolia-merged="true" data-type="Namespace">function chmod(path: PathLike,mode: Mode,callback: NoParamCallback): void;

Asynchronously changes the permissions of a file. No arguments other than a possible exception are given to the completion callback.

See the POSIX chmod(2) documentation for more detail.

import { chmod } from 'node:fs';

chmod('my_file.txt', 0o775, (err) => {
if (err) throw err;
console.log('The permissions for file "my_file.txt" have been changed!');
});
namespace chmod

Resources

ReferenceDocsGuidesDiscordMerch StoreGitHubBlog 

Toolkit

RuntimePackage managerTest runnerBundlerPackage runner

Project

Bun 1.0Bun 1.1Bun 1.2Bun 1.3RoadmapContributingLicense

Baked with ❤️ in San Francisco

We're hiring →

Node fs.chmod function | API Reference | Bun,AI智能索引,全网链接索引,智能导航,网页索引

    API documentation for namespace node:fs.chmod | Bun