public List <FileIdentifier> GetFiles(string directory)
        {
            var result = new DirWatcher {
                Directory = directory
            }.GetElements();

            return(result);
        }
 public List<FileIdentifier> GetFiles(string directory)
 {
     var result = new DirWatcher { Directory = directory }.GetElements();
     return result;
 }