1HCT::File(3) User Contributed Perl Documentation HCT::File(3)
2
3
4
6 HCT::File - Set of functions for work files and directories.
7
9 This package containts various subroutines to provide work with files
10 and directories.
11
13 scan_path (PATH)
14 The PATH is a list of pathes that should be processed:
15
16 scan_path ($path);
17
18 As the result will be returned a hash-array, where keys -
19 directories, and values - list of files from this directories.
20
21 $res = scan_path ($path);
22
23 is_tmp (PATH)
24 Portable method to test if path is a temporary file or directory.
25 Returns true or false.
26
27 is_sys (PATH)
28 Portable method to test if path is a system file or directory.
29 Returns true or false.
30
31 is_file (PATH)
32 Portable method to test if path is a file. The reason: "-f" doesn't
33 work in ActiveState Perl on Windows. Returns true or false.
34
35 is_dir (PATH)
36 Portable method to test if path is a directory. The reason: "-d"
37 doesn't work in ActiveState Perl on Windows. Returns true or false.
38
39 get_basename (PATH)
40 Returns the file name portion of a path by using "File::Basename"
41 subroutines.
42
43 get_dirname (PATH)
44 Returns the dir name portion of a path by using "File::Basename"
45 subroutines.
46
47 get_extension (PATH)
48 Returns the file extension portion of a path by using
49 "File::Basename" subroutines.
50
51
52
53perl v5.12.1 2009-08-08 HCT::File(3)