]> git.p6c8.net - devedit.git/blobdiff - modules/File/Access.pm
Instead of absolute paths in error_file and template_file, I use relative ones.
[devedit.git] / modules / File / Access.pm
index 3bfd50db657431210d5560456a6ca246eaea9b4f..c649a2caa1d3692f835e0edb192b2bddb76f3043 100644 (file)
@@ -31,7 +31,7 @@ use base qw(Exporter);
 #
 # Change the group of files or directories
 #
 #
 # Change the group of files or directories
 #
-# Params: 1. Group name
+# Params: 1. Group name or group ID
 #         2. List of files
 #
 # Return: Number of files group successfully changed
 #         2. List of files
 #
 # Return: Number of files group successfully changed
@@ -94,7 +94,11 @@ sub dir_read($)
 
 # file_create()
 #
 
 # file_create()
 #
-# Create a file
+# Create a file, but only if it doesn't already exist
+#
+# (I wanted to use O_EXCL for this, but `perldoc -f sysopen`
+# doesn't say that it is available on every system - so I
+# created this workaround using O_RDONLY and O_CREAT)
 #
 # Params: File to create
 #
 #
 # Params: File to create
 #

patrick-canterino.de