file.html

来自「perl教程」· HTML 代码 · 共 110 行

HTML
110
字号
<?xml version="1.0" ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<!-- saved from url=(0017)http://localhost/ -->
<script language="JavaScript" src="../../displayToc.js"></script>
<script language="JavaScript" src="../../tocParas.js"></script>
<script language="JavaScript" src="../../tocTab.js"></script>
<link rel="stylesheet" type="text/css" href="../../scineplex.css">
<title>Win32::File - manage file attributes in perl</title>
<link rel="stylesheet" href="../../Active.css" type="text/css" />
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rev="made" href="mailto:" />
</head>

<body>

<script>writelinks('__top__',2);</script>
<h1><a>Win32::File - manage file attributes in perl</a></h1>
<p><a name="__index__"></a></p>

<!-- INDEX BEGIN -->

<ul>

	<li><a href="#name">NAME</a></li>
	<li><a href="#synopsis">SYNOPSIS</a></li>
	<li><a href="#description">DESCRIPTION</a></li>
	<li><a href="#functions">Functions</a></li>
	<ul>

		<li><a href="#note">NOTE</a></li>
	</ul>

	<li><a href="#constants">Constants</a></li>
</ul>
<!-- INDEX END -->

<hr />
<p>
</p>
<h1><a name="name">NAME</a></h1>
<p>Win32::File - manage file attributes in perl</p>
<p>
</p>
<hr />
<h1><a name="synopsis">SYNOPSIS</a></h1>
<pre>
        <span class="keyword">use</span> <span class="variable">Win32::File</span><span class="operator">;</span>
</pre>
<p>
</p>
<hr />
<h1><a name="description">DESCRIPTION</a></h1>
<p>This module offers the retrieval and setting of file attributes.</p>
<p>
</p>
<hr />
<h1><a name="functions">Functions</a></h1>
<p>
</p>
<h2><a name="note">NOTE</a></h2>
<p>All of the functions return FALSE (0) if they fail, unless otherwise noted.
The function names are exported into the caller's namespace by request.</p>
<dl>
<dt><strong><a name="item_getattributes">GetAttributes(filename, returnedAttributes)</a></strong>

<dd>
<p>Gets the attributes of a file or directory. returnedAttributes will be set
to the OR-ed combination of the filename attributes.</p>
</dd>
</li>
<dt><strong><a name="item_setattributes">SetAttributes(filename, newAttributes)</a></strong>

<dd>
<p>Sets the attributes of a file or directory. newAttributes must be an OR-ed
combination of the attributes.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="constants">Constants</a></h1>
<p>The following constants are exported by default.</p>
<dl>
<dt><strong><a name="item_archive">ARCHIVE</a></strong>

<dt><strong><a name="item_compressed">COMPRESSED</a></strong>

<dt><strong><a name="item_directory">DIRECTORY</a></strong>

<dt><strong><a name="item_hidden">HIDDEN</a></strong>

<dt><strong><a name="item_normal">NORMAL</a></strong>

<dt><strong><a name="item_offline">OFFLINE</a></strong>

<dt><strong><a name="item_readonly">READONLY</a></strong>

<dt><strong><a name="item_system">SYSTEM</a></strong>

<dt><strong><a name="item_temporary">TEMPORARY</a></strong>

</dl>

</body>

</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?