Skip to the content.

FileService.GetNoOfFiles method (1 of 2)

Gets the number of files on the FileSystem.

public long GetNoOfFiles(bool throwOnException = true, bool throwOnNotFound = true)
parameter description
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true
throwOnNotFound Indicates whether an Exeption should be thrown if the file is not found. Default:true

Return Value

No of files on the FileSystem.

See Also


FileService.GetNoOfFiles method (2 of 2)

Gets the number of files on the FileSystem.

public long GetNoOfFiles(string fileType, bool throwOnException = true, bool throwOnNotFound = true)
parameter description
fileType The type of the files
throwOnException Indicates whether an Exception should be thrown upon errors. Default:true
throwOnNotFound Indicates whether an Exeption should be thrown if the file is not found. Default:true

Return Value

No of files on the FileSystem.

See Also