Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3cab34c68b | ||
|
|
8299f8ed06 | ||
|
|
da05c5048e | ||
|
|
071e1ec19b |
No files matched your search
@@ -2,7 +2,7 @@ version: 2
|
|||||||
jobs:
|
jobs:
|
||||||
linting:
|
linting:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.9
|
- image: circleci/golang:1.10
|
||||||
working_directory: /go/src/github.com/filebrowser/filebrowser
|
working_directory: /go/src/github.com/filebrowser/filebrowser
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@@ -16,6 +16,7 @@ jobs:
|
|||||||
name: Run linting
|
name: Run linting
|
||||||
command: |
|
command: |
|
||||||
gometalinter --exclude="rice-box.go" \
|
gometalinter --exclude="rice-box.go" \
|
||||||
|
--deadline=300s \
|
||||||
-D goconst \
|
-D goconst \
|
||||||
-D gocyclo \
|
-D gocyclo \
|
||||||
-D vetshadow \
|
-D vetshadow \
|
||||||
@@ -24,7 +25,7 @@ jobs:
|
|||||||
-D gas
|
-D gas
|
||||||
build:
|
build:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.9
|
- image: circleci/golang:1.10
|
||||||
working_directory: /go/src/github.com/filebrowser/filebrowser
|
working_directory: /go/src/github.com/filebrowser/filebrowser
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
@@ -38,7 +39,7 @@ jobs:
|
|||||||
command: go build
|
command: go build
|
||||||
deploy:
|
deploy:
|
||||||
docker:
|
docker:
|
||||||
- image: circleci/golang:1.9
|
- image: circleci/golang:1.10
|
||||||
working_directory: /go/src/github.com/filebrowser/filebrowser
|
working_directory: /go/src/github.com/filebrowser/filebrowser
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
|||||||
@@ -134,13 +134,12 @@ func (i *File) GetListing(u *User, r *http.Request) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if strings.HasPrefix(f.Mode().String(), "L") {
|
if strings.HasPrefix(f.Mode().String(), "L") {
|
||||||
// It's a symbolic link
|
// It's a symbolic link. We try to follow it. If it doesn't work,
|
||||||
// The FileInfo from Readdir treats symbolic link as a file only.
|
// we stay with the link information instead if the target's.
|
||||||
info, err := os.Stat(f.Name())
|
info, err := os.Stat(f.Name())
|
||||||
if err != nil {
|
if err == nil {
|
||||||
return err
|
f = info
|
||||||
}
|
}
|
||||||
f = info
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if f.IsDir() {
|
if f.IsDir() {
|
||||||
|
|||||||
+1
-1
@@ -23,7 +23,7 @@ import (
|
|||||||
|
|
||||||
const (
|
const (
|
||||||
// Version is the current File Manager version.
|
// Version is the current File Manager version.
|
||||||
Version = "1.5.2"
|
Version = "1.5.3"
|
||||||
|
|
||||||
ListViewMode = "list"
|
ListViewMode = "list"
|
||||||
MosaicViewMode = "mosaic"
|
MosaicViewMode = "mosaic"
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
bf6bef64f1544a286116fe3a9366ac9addaa2dd5
|
3bd1e85574e413dba13012b6322933ab9dc1f4b0
|
||||||
Reference in new issue
Block a user