C# Class Mckineap.Utilities.FileOperations

Provides many File operations within Mckineap.
Datei anzeigen Open project: loic-lavergne/mckineap

Public Methods

Method Description
FileHasExtension ( String file, String extension ) : System.Boolean

Determines whether the file has the given extension.

IsDirectoryEmpty ( string path ) : System.Boolean

Checks whether the directory is empty.

Method Details

FileHasExtension() public static method

Determines whether the file has the given extension.
public static FileHasExtension ( String file, String extension ) : System.Boolean
file String The file to check.
extension String /// The extension to retrieve in the file.
/// The extension doesn't need to contain the extension dot. ///
return System.Boolean

IsDirectoryEmpty() public static method

Checks whether the directory is empty.
public static IsDirectoryEmpty ( string path ) : System.Boolean
path string The path of the directory to be checked.
return System.Boolean