Skip to content
  1. May 05, 2008
  2. Apr 12, 2008
  3. Apr 10, 2008
  4. Apr 08, 2008
  5. Apr 07, 2008
  6. Apr 03, 2008
    • Ted Kremenek's avatar
      Re-implemented Path::createDirectoryOnDisk (for Unix). · 1d0436cd
      Ted Kremenek authored
      This method allows one to create a directory, and optionally create all parent
      directories that do not exist.
      
      The original implementation would require that *all* directories along a path
      are writable by the user, including directories that already exist. For example,
      suppose we wanted to create the directory "/tmp/foo/bar", and the directory
      "/tmp" already exists, but not "/tmp/foo". Since "/tmp" is writable by all
      users, the original implementation would work, and create "/tmp/foo", followed
      by "/tmp/bar".
      
      A problem occurred, however if one wanted to created the directory
      "/Users/myuser/bar" (or equivalently "/home/myuser/bar"), and "/Users/myuser"
      already existed and is writable by the current user. The directory
      "/User/myuser" is writable by the user, but "/User" is not. The original
      implementation of createDirectoryOnDisk would return with failure since "/User"
      is not writable, even though "/User/mysuser" is writable.
      
      The new implementation works by recursively creating parents as needed, and thus
      doesn't need to check the permissions on every directory in a path.
      
      llvm-svn: 49162
      1d0436cd
  7. Apr 01, 2008
  8. Mar 24, 2008
  9. Mar 22, 2008
  10. Mar 13, 2008
  11. Mar 03, 2008
  12. Feb 27, 2008
  13. Feb 15, 2008
  14. Feb 04, 2008
  15. Dec 29, 2007
  16. Dec 18, 2007
  17. Dec 08, 2007
  18. Sep 14, 2007
  19. Sep 07, 2007
  20. Jul 06, 2007
  21. Jul 05, 2007
  22. Jun 04, 2007
  23. May 11, 2007
  24. May 06, 2007
  25. Apr 23, 2007
  26. Apr 07, 2007
    • Reid Spencer's avatar
      For PR1291: · ceeb918d
      Reid Spencer authored
      Implement the PathWithStatus class and its use throughout lib/System.
      
      llvm-svn: 35742
      ceeb918d
  27. Mar 29, 2007
    • Reid Spencer's avatar
      Use the stat information in the Path object, if it is already obtained. This · c7f485fd
      Reid Spencer authored
      avoids a call to ::fstat by MappedFile when the file size information was
      already obtained by the Path object.
      
      llvm-svn: 35477
      c7f485fd
    • Reid Spencer's avatar
      For PR789: · 200c6f9c
      Reid Spencer authored
      Make the sys::Path::getFileStatus function more efficient by having it
      return a pointer to the FileStatus structure rather than copy it. Adjust
      uses of the function accordingly. Also, fix some memory issues in sys::Path.
      
      llvm-svn: 35476
      200c6f9c
    • Reid Spencer's avatar
      Add a uniqueID field to the FileStatus structure for Paths. This will map · d394617a
      Reid Spencer authored
      to the inode number on Unix and something far less unique on Windows. The
      windows case needs to be improved.
      
      llvm-svn: 35461
      d394617a
    • Reid Spencer's avatar
      For PR789: · 0f92f0e5
      Reid Spencer authored
      * Add a method: bool isAbsolute() const, which determines if the path name
        is absolute or not.
      * Implement caching of file status information in the Path object. Allow it
        to be updated forcefully or lazily re-fetched from the cached value.
      
      llvm-svn: 35456
      0f92f0e5
Loading