internal List <string> GetFilenamesForIndexing(string pathToDCIMDirectory)
        {
            MediaFileManager     mediaFileManager = new MediaFileManager();
            IEnumerable <string> listFiles        = mediaFileManager.GetMediaFilesFromDirectory(new DirectoryInfo(pathToDCIMDirectory)).Select(f => f.FullName);
            //IEnumerable<string> listFiles = GetListFiles(pathToDCIMDirectory);
            List <string> listFilesDb = _cacheManager.GetFullFilenames(pathToDCIMDirectory);

            return(listFiles.Except(listFilesDb).ToList());
        }
        internal string GetPathToCameraDirectory()
        {
            string pathToDCIMDirectory = DependencyService.Get <IPathService>().GetLastUsedDCIMPath();

            if (!string.IsNullOrEmpty(pathToDCIMDirectory))
            {
                MediaFileManager mediaFileManager = new MediaFileManager();
                if (mediaFileManager.GetMediaFilesFromDirectory(new DirectoryInfo(pathToDCIMDirectory)).Any())
                {
                    return(pathToDCIMDirectory);
                }
            }
            return(DependencyService.Get <IPathService>().PublicDirectoryDcim + "/Camera");
        }