YaST2 |
modules/FileUtils.ycp |
Module for getting information about files and directories. Their types and sizes. Flags: Stable | |
|
|
This module has an unstable interface. |
Function which determines if the requested file/directory exists.
- Parameters:
-
target
- Return value:
-
true if exists
Function which determines if the requested file/directory is a directory or it is a link to a directory.
- Parameters:
-
target
- Return value:
-
true if it is a directory, nil if doesn't exist
Function which determines if the requested file/directory is a regular file or it is a link to a regular file.
- Parameters:
-
target
- Return value:
-
true if it is a regular file, nil if doesn't exist
Function which determines if the requested file/directory is a block file (device) or link to a block device.
- Parameters:
-
target
- Return value:
-
true if it is a block file, nil if doesn't exist
Function which determines if the requested file/directory is a fifo or link to a fifo.
- Parameters:
-
target
- Return value:
-
true if it is a fifo, nil if doesn't exist
Function which determines if the requested file/directory is a link.
- Parameters:
-
target
- Return value:
-
true if it is a link, nil if doesn't exist
Function which determines if the requested file/directory is a socket or link to a socket.
- Parameters:
-
target
- Return value:
-
true if it is a socket, nil if doesn't exist
Function which determines if the requested file/directory is a character device or link to a character device.
- Parameters:
-
target
- Return value:
-
true if it is a charcater device, nil if doesn't exist
Function returns the real type of requested file/directory. If the file is a link to any object, "link" is returned.
- Parameters:
-
target
- Return value:
-
fle type (directory|regular|block|fifo|link|socket|chr_device), nil if doesn't exist
Function returns the type of requested file/directory. If the file is a link to any object, the object's type is returned.
- Parameters:
-
target
- Return value:
-
fle type (directory|regular|block|fifo|link|socket|chr_device), nil if doesn't exist
Function which returns the size of requested file/directory.
- Parameters:
-
target
- Return value:
-
file size, -1 if doesn't exist
Function which determines the owner's user ID of requested file/directory.
- Parameters:
-
target
- Return value:
-
UID, nil if doesn't exist
Function which determines the owner's group ID of requested file/directory.
- Parameters:
-
target
- Return value:
-
GID, nil if doesn't exist