class ExportTreeManager {

    void clean() {
        File root = fileUtilsWrapper.getCineLogRoot();

        File saveRoot = fileUtilsWrapper.getFile(root.getAbsolutePath() + "/saves/" + subDir);

        File[] saveFiles = saveRoot.listFiles();
        if(saveFiles.length > 10){
            File oldestFile = null;
            for (File saveFile : saveFiles) {
                if(oldestFile == null || oldestFile.lastModified() > saveFile.lastModified()){
                    oldestFile = saveFile;
                }
            }

            if(oldestFile != null){
                //noinspection ResultOfMethodCallIgnored
                oldestFile.delete();
            }
        }
    }

      ExportTreeManager(String subDir);
      ExportTreeManager(FileUtilsWrapper fileUtilsWrapper, String subDir);

}