title: Find file owner in r
body: <p>There are various base functions for getting info about files. Right now I am using the free software <a href="http://www.nirsoft.net/utils/search_my_files.html" rel="nofollow noreferrer">SearchMyFiles</a> in order to do this. However, I would prefer to do it in r.</p>
  
  <p>I would like to search for a specific kind of folder within my hard drive and then I would like to return paths and info about the files found in these folders to a data frame, more specifically, since the files have different owners I would like to return the owners of the files.</p>
  
  <p>The functions that I have tried are <code>file.info()</code> and <code>list.files()</code></p>
  
  <p>However, <code>file.info(path, extra_cols = TRUE)</code> does not return the owner of the file. Instead it returns this:</p>
  
  <pre><code> size isdir  mode mtime               ctime               atime               exe
  10689 FALSE  666  2017-03-01 12:00:47 2017-03-01 12:00:47 2017-03-01 12:00:47  no
  </code></pre>
  
  <p>1) Is there a way to find the owner through <code>file.info()</code></p>
  
  <p>2) Is there a neat way to search all folders with a specific name and return information about the files found in those folders?</p>
  
  <p>Something like </p>
  
  <pre><code>list.files(path_to_harddrive, folder_string) %&gt;%
  file.info()
  </code></pre>
  
  <p><a href="https://stackoverflow.com/questions/26105955/accessing-win7-file-attributes-in-r">This question</a> addresses the issue, however without any accepted answer.</p>
  
  <pre><code>&gt; as.data.frame(Sys.info())
                                 Sys.info()
  sysname                           Windows
  release                             7 x64
  version        build 7601, Service Pack 1
  machine                               x86
  </code></pre>