GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SYMPA::TOOLS::FILE (3)

.ds Aq ’

NAME

Sympa::Tools::File - File-related functions

CONTENTS

DESCRIPTION

This package provides some file-related functions.

    Functions

set_file_rights(%parameters) Sets owner and/or access rights on a file.

Returns true value if setting rights succeeded. Otherwise returns false value.

Note: If superuser was specified as owner, this function will die.

copy_dir($dir1, $dir2) Copy a directory and its content
del_dir($dir) Delete a directory and its content
mk_parent_dir($file) To be used before creating a file in a directory that may not exist already.
mkdir_all($path, $mode) Recursively create directory and all parent directories
shift_file($file, $count) Shift file renaming it with date. If count is defined, keep $count file and unlink others
get_mtime ( $file ) Gets modification time of the file.

Parameter:
$file Full path of file.

Returns:

Modification time as UNIX time. If the file is not found (including the case that the file vanishes during execution of this function) or is not readable, returns POSIX::INT_MIN. In case of other error, returns undef.

list_dir($dir, $all, $original_encoding) Recursively list the content of a directory Return an array of hash, each entry with directory + filename + encoding
get_dir_size($dir) TBD.
qencode_hierarchy() Q-encodes a complete file hierarchy. Useful to Q-encode subshared documents.

ToDo: See a comment on qencode_filename in Sympa::Tools::Text.

remove_dir(@directories) Function for Removing a non-empty directory. It takes a variale number of arguments: It can be a list of directory or few direcoty paths.

HISTORY

Sympa::Tools::File appeared on Sympa 6.2a.41.
Search for    or go to Top of page |  Section 3 |  Main Index


6.2.14 SYMPA::TOOLS::FILE (3Sympa) 2016-02-23

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.