BSFL  0.1.0
Bash Shell Function Library
 All Files Functions Variables Groups
Functions
File and Directory

Functions

 device_exists (device)
 Tests if a device exists. More...
 
 directory_exists (directory)
 Tests if a directory exists. More...
 
 file_exists (file)
 Tests if a file exists. More...
 

Detailed Description

Function Documentation

device_exists ( device  )

Tests if a device exists.

Parameters
deviceDevice file to operate on.
Return values
0if the device exists.
1in others cases.
directory_exists ( directory  )

Tests if a directory exists.

Parameters
directoryDirectory to operate on.
Return values
0if the directory exists.
1in others cases.
file_exists ( file  )

Tests if a file exists.

Parameters
fileFile to operate on.
Return values
0if the (regular) file exists.
1in others cases.