Lines Matching refs:file

2 /* Header file for common file test functions 
8 fill_files() : fill file with specified contents
22 Description: creates a new file using fopen() call
23 $filename = Name of the file
84 Description: Fills the file with data as specified with requested size.
85 $file_handle = file handle, opened with write options,
152 string $name_prefix = "file",
154 Description: changes file permission for given file(s).
155 $file_path = dir path where file exists
157 $perms = new permission of the file, similar to $mode args of chmod() call
158 $name_prefix = common name prefix, default is "file"
168 $name_prefix = "file",
196 string $name_prefix = "file",
205 unqiue numeric value to make the file name unique, default = file
208 $mode = file open mode as specified in fopen() call. Do not use
209 modes used for only reading the file. Default = "w"
212 $content_type = Specify type of the content to fill in the file.
213 "numeric" = fill file with numeric vlaues
214 "text" = fill file with regular text
215 "empty" = empty file
217 "alphanumeric" = fill file with alpha numeric text
218 If imporper $content type is specified, file is created as empty
219 $size = size of the fill in terms of kilobyte, i.e size of the file.
229 created => total file created
239 $name_prefix = "file",
282 // fill the file with specifiec type of data and size
292 // call fill_file() to fill the file
302 // change all file's permissions
325 $file_path = location of the file and where links need to be created
327 unique numeric value to make the file name unique, default = link
329 $link_count = total no. of links to be created to given file, default = 1
332 $link_file_content = Type of the content to fill in the file.
333 numeric = fill file with numeric vlaues
334 text = fill file with regular text
337 If imporper $content type is specified, file is created as empty
338 $size = size of the fill in terms of kilobyte, i.e size of the file.
342 $filename = file used to create a link on
346 created => total file created
401 // fill the file with specific type of data and size
409 // call fill_file() to fill the file
416 // change the permission of the link file, only if hard link.
432 Description: delete a given file if exists
435 file_not_found if file doesn't exist
438 // check if file exists
449 Function: array delete_files(string $file_path, int $count = 1, string $name_prefix = "file",
459 notfound = Count of non existing file
464 $name_prefix = "file",