fileutil
various file utilities
Overview
Design
- Super Type
- Managed-Entity
| Role | Abstract. (Objects cannot be created.) |
| Instance Names | Unique |
| Notification | false |
| Template Directory | |
| Data View | Children, proximity: 1 |
| Logger Name | fileutil |
Constraints
None
Attributes
None
Commands
available
test if file available
static: This command can be run outside of an object context.
- Usage
- available [-failonerror] -file <>
Options
| Option | Description |
|---|---|
| failonerror | error the command if test fails |
| file | file name |
executable
test if file executable
static: This command can be run outside of an object context.
- Usage
- executable [-failonerror] -file <>
Options
| Option | Description |
|---|---|
| failonerror | error the command if test fails |
| file | file name |
writeable
test if file writeable
static: This command can be run outside of an object context.
- Usage
- writeable [-failonerror] -file <>
Options
| Option | Description |
|---|---|
| failonerror | error the command if test fails |
| file | file name |
readable
test if file readable
static: This command can be run outside of an object context.
- Usage
- readable [-failonerror] -file <>
Options
| Option | Description |
|---|---|
| failonerror | error the command if test fails |
| file | file name |
older
test if file older than other file
static: This command can be run outside of an object context.
- Usage
- older [-failonerror] -file <> -target <>
Options
| Option | Description |
|---|---|
| failonerror | error the command if test fails |
| file | file name |
| target | target file name |
newer
test if file newer than other file
static: This command can be run outside of an object context.
- Usage
- newer [-failonerror] -file <> -target <>
Options
| Option | Description |
|---|---|
| failonerror | error the command if test fails |
| file | file name |
| target | target file name |
ls
list directory
static: This command can be run outside of an object context.
- Usage
- ls -dir <> [-recursive]
Options
| Option | Description |
|---|---|
| dir | directory name |
| recursive | list recursively |
mkdir
make directory
static: This command can be run outside of an object context.
- Usage
- mkdir -dir <>
Options
| Option | Description |
|---|---|
| dir | directory name |
rmdir
remove directory
static: This command can be run outside of an object context.
- Usage
- rmdir -dir <> [-failonerror]
Options
| Option | Description |
|---|---|
| dir | directory name |
| failonerror | if true fail on error |
copy
copy file
static: This command can be run outside of an object context.
- Usage
- copy [-backup] -file <> [-overwrite] [-suffix <.backup>] -target <>
Options
| Option | Description |
|---|---|
| backup | if present make a backup if the target file exists and -overwrite is specified |
| file | file name |
| overwrite | if present overwrite any existing file |
| suffix | suffix of backup file |
| target | target file name |
move
move file
static: This command can be run outside of an object context.
- Usage
- move -file <> -target <>
Options
| Option | Description |
|---|---|
| file | file name |
| target | target file name |
remove
remove file
static: This command can be run outside of an object context.
- Usage
- remove [-failonerror] -file <>
Options
| Option | Description |
|---|---|
| failonerror | error the command if test fails |
| file | file name |
link
make a link
static: This command can be run outside of an object context.
- Usage
- link -file <> -target <>
Options
| Option | Description |
|---|---|
| file | link file to be created |
| target | file for link target |
touch
touch a file
static: This command can be run outside of an object context.
- Usage
- touch [-datetime <>] -file <>
Options
| Option | Description |
|---|---|
| datetime | specifies new mod time of the file |
| file | file name |


