Donavan Pantke
1fdb26e0b9
Fix a few various typecasting bugs.
2014-06-22 16:01:04 -04:00
Donavan Pantke
0ed9339c17
Implement aliases to client methods in an individual File.
2014-06-22 01:48:11 -04:00
Donavan Pantke
17a3539b2a
Remove old Chtimes implementation.
2014-06-22 01:26:53 -04:00
Donavan Pantke
311e0fd159
Slightly refactor Chtimes and add support for other variants of setstat.
2014-06-22 01:25:40 -04:00
Donavan Pantke
7b37dffc24
Merge commit 'ecc928e8ba95a479858406dd87029a55cbd3262b'
2014-06-21 20:48:56 -04:00
Donavan Pantke
c077755e5d
Convert Chtimes to a setstat call for reuse with other stat setting functions.
2014-06-21 20:48:40 -04:00
Sean Treadway
b5d9767c0a
Consistent puncutation, names and constants
...
* European sentence punctuation, consistent with package docs
* Match os.SEEK_* constants instead of numeric constants from io.Seeker
* Consistent (shorter) receiver name for quickcheck value
2014-06-13 10:22:04 +02:00
Sean Treadway
68aec0278e
Implement io.Seeker for *sftp.File
...
Test that reads at the seeked offset of sftp.File are consistent with
the reads of offset of os.File for the same file.
Error conditions and undefined seeks are not tested.
2014-06-11 21:17:53 +02:00
Dave Cheney
452cdf6b53
Merge from nemith-master
2014-05-25 14:31:57 +10:00
Dave Cheney
451f9602c8
Merge pull request #4 from claudiofelber/master
...
Added client methods CreateDirectory() and RemoveDirectory()
2014-05-25 14:24:03 +10:00
Saulius Gurklys
8d59c9c638
Fixed incompatibility with latest code.google.com/p/go.crypto/ssh
2014-04-10 15:37:10 +03:00
Claudio Felber
c9c2be8791
Added function Chtimes() to modify access and modification time of a file
2013-12-11 00:18:53 +01:00
Claudio Felber
e8b14451d6
For better standard file system interface compatibility:
...
- Renamed CreateDirectory() to MkDir()
- Integrated RemoveDirectory() into Remove()
2013-11-23 14:00:17 +01:00
Claudio Felber
e2bb7bc10b
Added client methods CreateDirectory() and RemoveDirectory()
2013-11-23 00:35:12 +01:00
Dave Cheney
b8aa2fe3d1
Fixed Read, removed ReadAt
...
ReadAt should be replaced by Seek when the fs interface provides it.
2013-11-15 22:04:14 +11:00
Dave Cheney
4d6ea4f122
Added OpenFile support
...
Close #3
2013-11-14 15:32:21 +11:00
Dave Cheney
31b82445b2
Switched back to kr/fs
2013-11-11 12:57:03 +11:00
Dave Cheney
216912b085
Added Client.sendRequest, and more tests
2013-11-08 21:56:25 +11:00
Dave Cheney
d4d73b4a58
Added better walk tests
2013-11-08 21:24:50 +11:00
Dave Cheney
046ffa9135
Assert that *Client is a fs.FileSystem
2013-11-07 17:43:06 +11:00
Dave Cheney
3fd0eb3048
Switched from WalkFunc to WalkFS
2013-11-07 17:23:51 +11:00
Dave Cheney
e24b14daee
always use path.Join
2013-11-07 12:50:01 +11:00
Dave Cheney
e31015aaf3
Use forked fs.Walker
2013-11-07 11:31:46 +11:00
Dave Cheney
331b71c05b
Added more example and help text
2013-11-06 19:48:37 +11:00
Dave Cheney
2a93daf2d0
made all constants private
2013-11-06 19:10:28 +11:00
Dave Cheney
a5056a6347
fixed writing
2013-11-06 16:09:06 +11:00
Dave Cheney
44d7769a0d
added File.Stat/fstat coverage
2013-11-06 16:03:08 +11:00
Dave Cheney
fc1d4adce0
more integration tests
2013-11-06 15:53:14 +11:00
Dave Cheney
ec6ff9e634
Initial integration tests
2013-11-06 15:40:35 +11:00
Dave Cheney
0a125fe805
added tests for ok/eof helpers
2013-11-06 15:00:04 +11:00
Dave Cheney
f687584582
use unmarshalStatus everywhere
2013-11-06 14:50:04 +11:00
Dave Cheney
7f887a54b8
added Client.Rename and example
2013-11-06 14:15:26 +11:00
Dave Cheney
af29244473
Added Client.Remove and example
2013-11-06 14:08:26 +11:00
Dave Cheney
566083d9db
Remove duplicate package doc
2013-11-06 13:10:18 +11:00
Dave Cheney
402fa50430
added Write/writeAt and example
2013-11-06 13:04:40 +11:00
Dave Cheney
6247331082
implement open(path, flags)
2013-11-06 12:53:45 +11:00
Dave Cheney
9407ad8dcb
Move functions around
2013-11-06 12:42:14 +11:00
Dave Cheney
e7b8e37839
Added File.Stat and example
2013-11-06 12:36:05 +11:00
Dave Cheney
d533956e46
added File.Close
2013-11-06 11:30:01 +11:00
Dave Cheney
3f580d42b1
Added Client.Open method and example
2013-11-06 11:04:26 +11:00
Dave Cheney
97f68804ee
the time has come to split sftp into client and server
2013-11-05 22:16:36 +11:00