Act=info of file tags, viewing files or directory attribute information

Source: Internet
Author: User

Function:

· View detailed property information for a file or directory, such as: presence, name, length, read, write, etc.

Usage:

<file act=info[id= schoolbag name]> file name of relative path </file>

· Act=info: View Property actions

· ID: Return schoolbag name (optional, default to sign file)

Return:

· Canread:true|false, is it possible to read

· Canwrite:true|false, can you write

· Exists:true|false, whether the file or directory exists

· Files: File number under Directory, this entry is empty when viewing a file

· Paths: The number of subdirectories under the directory, which is empty when viewing a file

· Subs: Total number of files + subdirectories in directory, empty when viewing files

· Isdirectory:true|false, is not the directory

· Isfile:true|false, is not the file

· Length: File content Lengths

· Modified: Last Modified Time (format: Yyyy-mm-dd HH:mm:ss)

· LastModified: Last Modified time (Long integer type)

· Name: file or directory name

· Parent: Parent Directory

· Path: The full path

· If it is a directory, returns the list of properties for the files and subdirectories under the directory

Example 1:

View this file properties

<fileid=file act=info>_samples/file_info.html</file>

View the properties of the _samples/file_info.html file, return property information

Display the returned property information

    <for [email protected]{file:getwidth}>        <tr><td>@{file:@{for:getSuffix}}</td>< Tdhtml>@{file:@{file:@{for:getsuffix}}}</td></tr>    </for>

Full code

Effect

(example file: _samples/file_info.html)

Try it yourself.

Download and description of light-open platform resources

platform free Download:http://download.csdn.net/detail/tx18/8381859

Latest Development Manual Download: http://download.csdn.net/detail/tx18/8411089

Development example: Light Open e-commerce website , free download: http://download.csdn.net/detail/tx18/8318585

The light-open platform will be upgraded to provide you with more powerful and easy features, please note the latest development manuals

Act=info of file tags, viewing files or directory attribute information

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.