Commit graph

63 commits

Author SHA1 Message Date
Robin Appelman
3ae0f3dd0c Add truncate support to native streams 2014-08-03 15:36:59 +02:00
Robin Appelman
9068418528 Add negative tests for stat and rename 2014-08-03 15:36:26 +02:00
Robin Appelman
125bc445f7 Don't use warning to check for errors, only return values 2014-08-03 15:02:56 +02:00
Robin Appelman
b271e51d4b Fix check if share is already connected 2014-08-03 14:54:38 +02:00
Robin Appelman
fdb606257d Error handling in NativeStream 2014-08-03 14:49:00 +02:00
Robin Appelman
3888ae6b43 Add option to set file modes 2014-08-03 14:28:20 +02:00
Robin Appelman
3a6d77bc78 Better state and error handling 2014-08-03 01:36:23 +02:00
Robin Appelman
f444b7c138 remove unused code 2014-07-31 16:44:41 +02:00
Robin Appelman
00f74274a3 Fix unit test 2014-07-31 16:36:36 +02:00
Robin Appelman
1c11289d36 Introduce FileInfo objects for the result of dir and add readable and hidden attributes to files 2014-07-31 16:05:20 +02:00
Robin Appelman
f357ad7b6f Fix escaping of single quotes when opening streams 2014-07-29 21:56:40 +02:00
Juan Pablo Villafañez
8f8f8cbf5e Throw connection errors in some extra cases 2014-07-29 13:52:19 +02:00
Robin Appelman
8d41d7a97b Clean native stream wrapping 2014-07-26 18:41:58 +02:00
Robin Appelman
5c48e22929 Improve phpdoc 2014-07-26 18:35:34 +02:00
Robin Appelman
451cce0626 Relicense to MIT 2014-07-26 18:21:46 +02:00
Robin Appelman
e74a83a400 remove unused method 2014-07-24 01:38:32 +02:00
Robin Appelman
89d73346f2 Also add Share::getWrite to non native shares 2014-07-24 01:29:54 +02:00
Robin Appelman
7c2393afb0 remove unused method 2014-07-22 23:44:49 +02:00
Robin Appelman
0cf2fa0904 Extend nativestream tests 2014-07-22 23:36:47 +02:00
Robin Appelman
810285ab93 remove unneeded destructor 2014-07-22 02:03:51 +02:00
Robin Appelman
7035de036c Add more tests for stream 2014-07-22 02:00:42 +02:00
Robin Appelman
d18b9db9c0 use authentication files 2014-07-21 20:31:19 +02:00
Robin Appelman
1a3640e25b Fix catching invalid type when deleting a folder 2014-07-21 20:31:15 +02:00
Robin Appelman
d63e4f4b9f Add hierarchy to the exceptions 2014-07-19 15:22:42 +02:00
Robin Appelman
1c2745ccf2 Fix catching rmdir on file 2014-07-15 16:42:09 +02:00
Robin Appelman
5f80502017 Restore error handling after using libsmbclient-php 2014-07-15 16:40:58 +02:00
32f54c925b Merge pull request #3 from Xenopathic/patch-1
Fix errno comparison
2014-07-15 16:07:30 +02:00
Robin McCorkell
31b1cfdaf6 Fix smbclient_state_init argument order 2014-07-14 13:58:06 +01:00
Robin McCorkell
967a7a6898 Fix errno comparison 2014-07-14 13:27:39 +01:00
Robin Appelman
3c67574fff Add native implementation using the libsmbclient-php extensions 2014-07-13 17:13:23 +02:00
Robin Appelman
0520cba7dc Add some comment about usage of environment auth 2014-07-13 17:10:32 +02:00
Robin Appelman
fdb76683b2 Add the option of passing environment variables to the connection 2014-07-13 17:10:26 +02:00
Robin Appelman
cc376a4b31 Extract share interface 2014-07-12 15:52:23 +02:00
Robin Appelman
eca03d1b88 Add method to get a readable stream of a file 2014-07-12 15:51:16 +02:00
Robin Appelman
46c122d6c1 Better phpdoc for Share::dir 2014-07-09 18:17:31 +02:00
Robin Appelman
46e2daf1ee Move to PSR-4 for autoloading 2014-04-07 13:54:49 +02:00
Robin Appelman
7adbe91c9a remove caching share as caching should be done at a higher level 2014-02-25 15:16:09 +01:00
Robin Appelman
9e2dab941c fix parsing of dir output 2014-02-05 15:32:10 +01:00
Robin Appelman
bb92259b32 Discard password prompts from smbclient's output 2013-11-26 16:58:23 +01:00
Robin Appelman
f8bc64f097 adjust modified dates to the correct timezone 2013-09-08 14:31:26 +02:00
Robin Appelman
cb96c44176 beter catching of errors 2013-06-17 15:11:06 +02:00
Robin Appelman
c91c970a8a fix dir for non existing folders 2013-06-16 22:26:17 +02:00
Robin Appelman
69e9082def Additional test cases 2013-05-01 20:58:04 +02:00
Robin Appelman
f57f29d277 Don't pass the password in the command line when doing listShares 2013-05-01 17:37:07 +02:00
Robin Appelman
59bc57cc06 split connection code 2013-05-01 17:33:40 +02:00
Robin Appelman
190ac9501d Add test cases for invalid server configurations 2013-05-01 16:38:42 +02:00
Robin Appelman
c94eea8294 split test cases 2013-05-01 16:11:01 +02:00
Robin Appelman
78916cfc08 Move some code arround 2013-05-01 00:03:10 +02:00
Robin Appelman
114dae07e1 Add @throws to phpdoc 2013-03-14 23:27:26 +01:00
Robin Appelman
2ed803907f Throw the proper exceptions when the connection can't be established 2013-03-14 23:23:46 +01:00