summaryrefslogtreecommitdiffstats
path: root/src/main/java/com/gitblit/utils/FileUtils.java
Commit message (Collapse)AuthorAgeFilesLines
* Do not resolve symbolic links to repositories.Florian Zschocke2019-06-101-7/+16
| | | | | | | | | | | | | | When symbolic links under the base repository folder point to repositories outside the base repository folder, the forming of relative repository names failed and resulted in NullPointerExceptions. Create the relative path by not following symbolic links, i.e. the link name is taken as is and not resolved to the external path. This also changes the whole `exactPath` method to work on Paths, instead of Files. Fixes #891 and fixes #837.
* Fix 2 possible NullPointer occurencesmarco2015-11-231-1/+10
|
* Fix backslash regression in relative path determiniationJames Moger2014-10-131-1/+1
|
* Improve relative path determination using Java 7 PathsJames Moger2014-10-101-14/+6
|
* Trim trailing whitespace and organize importsJames Moger2013-09-301-20/+20
| | | | Change-Id: I9f91138b20219be6e3c4b28251487df262bff6cc
* Add recursive delete function to FileUtilsJames Moger2013-09-301-0/+24
| | | | Change-Id: Ie177a9e5e9f88ea35bb8f9fe0b6c9af7ce92a280
* Close streams in finally block.Florian Zschocke2013-08-211-10/+36
| | | | Close input and output streams in a finally block so that they do not linger around and occupy system resources when an exception occurs.
* Reorganized to Apache Standard Directory Layout & integrated MoxieJames Moger2013-03-271-0/+292
This is a massive commit which reorganizes the entire project structure (although it is still monolithic), removes the Build classes, and switches to Moxie, a smarter Ant build tookit based on the original Gitblit Build classes. The Ant build script will likely require additional fine-tuning, but this is big step forward.