Comments (1)
You need to cast the os.FileInfo
into our File
structure.
info, error := client.Stat('/file.txt')
...
if file, ok := info.(File); ok {
fmt.Println(file.ContentType())
}
from gowebdav.
Related Issues (20)
- Wrong content of uploaded file
- Www-Authenticate header's token should be treated as case-insensitive HOT 3
- File upload uploads files with 0 bytes - No error given HOT 9
- panic due to concurrent map writes HOT 8
- improve concurrency
- ReadDir omits returning the first result if it is a directory HOT 1
- Error on Folders with '+' HOT 3
- 400 when passing whitespace in path args to c.Copy()
- Set GetBody on http.Request HOT 2
- support Walk func HOT 1
- [err:WriteStream] file write problem: err:WriteStream HOT 2
- No support for Bearer Token authentication HOT 2
- [WIP] Supports upload files via WriteCloser
- Support for cookies HOT 3
- Authentication fails when deployed to Windows machine without Go installed HOT 4
- [BUG/FEATURE] OneDrive Support HOT 2
- Digest auth usage HOT 2
- Use the tag Management release version to publish HOT 2
- Stat() for directory does not return last modified time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gowebdav.