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 14, 2008
  11. Mar 13, 2008
  12. Mar 12, 2008
  13. Mar 03, 2008
  14. Feb 27, 2008
  15. Feb 22, 2008
  16. Feb 20, 2008
  17. Feb 15, 2008
  18. Feb 13, 2008
  19. Feb 04, 2008
  20. Jan 29, 2008
  21. Jan 24, 2008
  22. Jan 09, 2008
  23. Dec 29, 2007
  24. Dec 22, 2007
  25. Dec 18, 2007
Loading