From 68d53c01b0b8e9a007a6a30158c19e34b2d2a34e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= This module contains utilities on a higher level than the This module does not support "raw" file names (i.e. files whose names
- do not comply with the expected encoding). Such files will be ignored
- by the functions in this module. For more information about raw file names, see the This module contains utilities on a higher level than the
+ This module does not support "raw" filenames (that is, files whose
+ names do not comply with the expected encoding). Such files are ignored
+ by the functions in this module. For more information about raw filenames, see the
+ The Ensures that all parent directories for the specified file or
+ directory name Returns
The
Returns the size of the specified file.
The
If Unicode file name translation is in effect and the file
- system is completely transparent, file names that cannot be
- interpreted as Unicode may be encountered, in which case the
-
For more information about raw file names, see the
-
Folds function
If Unicode filename translation is in effect and the file
+ system is transparent, filenames that cannot be
+ interpreted as Unicode can be encountered, in which case the
+
For more information about raw filenames, see the
+
The
Returns
The
Returns
The
Returns
The
Returns the date and time the specified file or directory was last
+ modified, or
The
Returns a list of all files that match Unix-style wildcard string
+
The wildcard string looks like an ordinary filename, except - that certain "wildcard characters" are interpreted in a special - way. The following characters are special: -
+ that the following "wildcard characters" are interpreted in a special + way:Two adjacent
Two adjacent
Matches any of the characters listed. Two characters
- separated by a hyphen will match a range of characters.
- Example:
Other characters represent themselves. Only filenames that - have exactly the same character in the same position will match. - (Matching is case-sensitive; i.e. "a" will not match "A"). -
-Note that multiple "*" characters are allowed - (as in Unix wildcards, but opposed to Windows/DOS wildcards). -
-Examples:
+ have exactly the same character in the same position match. + Matching is case-sensitive, for example, "a" does not match "A". +Notice that multiple "*" characters are allowed + (as in Unix wildcards, but opposed to Windows/DOS wildcards).
+Examples:
The following examples assume that the current directory is the - top of an Erlang/OTP installation. -
-To find all
To find all
- filelib:wildcard("lib/*/ebin/*.beam").
- To find either
To find
- filelib:wildcard("lib/*/src/*.?rl")
- or the following line
+filelib:wildcard("lib/*/src/*.?rl")
- filelib:wildcard("lib/*/src/*.{erl,hrl}")
- can be used.
-To find all
To find all
- filelib:wildcard("lib/*/{src,include}/*.hrl").
+filelib:wildcard("lib/*/{src,include}/*.hrl").
To find all
- filelib:wildcard("lib/*/{src,include}/*.{erl,hrl}")
- To find all
To find all
- filelib:wildcard("lib/**/*.{erl,hrl}")
+filelib:wildcard("lib/**/*.{erl,hrl}")
The
Same as