Package com.cloud.serverpak.services
Class FilesInformService
java.lang.Object
com.cloud.serverpak.services.FilesInformService
The class is intended as a service that returns in its methods: how much space
the cloud is busy for a specific user, a list of the user's files.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetFilesSize(String nameUser) Returns the size of files in bytes.getListFiles(String nameUser) Returns a list of objects describing files for a specific user.
-
Constructor Details
-
FilesInformService
public FilesInformService()
-
-
Method Details
-
getListFiles
Returns a list of objects describing files for a specific user.- Parameters:
nameUser- username.- Returns:
- A list of objects describing the files. it can return "Null" if there are no files.
- Throws:
IOException- when working with files.
-
getFilesSize
Returns the size of files in bytes.- Parameters:
nameUser- username.- Returns:
- file size in bytes.
- Throws:
IOException- when working with files.
-