public static List<MyFile> getFolderContent(File file) {
        List<MyFile> filesList = new ArrayList<>();

        try (DirectoryStream<Path> listPathFiles = Files.newDirectoryStream(Paths.get(StringUtils.trimToEmpty(file.getPath())))) {

			for (Path currentPath : listPathFiles) {
				FileTime lastModifiedDate = Files
						.getLastModifiedTime(currentPath);

				MyFile myCurrentFile = new MyFile(String.valueOf(currentPath
						.getFileName()),
						formateFileTimeToStringDate(lastModifiedDate),
						Files.size(currentPath), Files.isDirectory(currentPath));

				filesList.add(myCurrentFile);
			}
        }catch(IOException e) {
            e.printStackTrace();
        }
        return filesList;
    }