Robin McCorkell
2b99fc76ec
Cleanup of PHPDoc return types
11 years ago
Jörn Friedrich Dreyer
c738359a11
add paged provider
11 years ago
Thomas Müller
5b00bc1d6e
Adding basement for the direct download url
11 years ago
Robin McCorkell
fdbb68a3c3
Return ? if mtime is 0 or -1
Tooltip contains 'Unable to determine date'. Fixes #6395
11 years ago
Joas Schilling
2c39aec8cb
Replace deprecated constant with new class constant
11 years ago
Jörn Friedrich Dreyer
3427976bb6
strict comparison
11 years ago
Jörn Friedrich Dreyer
aa3ad898a9
fix amazon s3 issues
folder size and mtime is always unknown in s3
more s3 fixes
make rescanDelay of root dir configurable, add on the fly update of legacy storage ids, !isset -> empty when checking strings
reduce number of http calls on remove and rmdir
fix typo
11 years ago
Lukas Reschke
33c0d2f743
Fix mapping of relative paths
11 years ago
Robin Appelman
2f22e67570
Also check if the file itself is updatable
11 years ago
Robin Appelman
ab79caf29b
Check if the parent is writable to check if a file is deletable
11 years ago
Morris Jobke
b3b3354809
move to public namespace
12 years ago
Stephan Peijnik
2df52e54d7
Fix STORAGE_* constants usage by moving those constants into \OC\Files\Filesystem.
As constants not defined within a class cannot be automatically found by the
autoloader moving those constants into a class makes them accessible to
code which uses them.
Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
12 years ago
Morris Jobke
c6bf51c457
Close open file handles in files library
ref #10392
12 years ago
Jörn Friedrich Dreyer
ab93f1949d
update hasUpdated description, overwrtie testStat for objectstore test
12 years ago
Robin Appelman
87e311b996
Fix storage being passed to cache/watcher and scanner when using storage wrappers
12 years ago
Thomas Müller
da3974bcb2
- drop permissions table and related code
- the file/folder's permission is now stored in the file cache
- BackGroundWatcher has been removed - this has meanwhile be replaced by occ files:scan which can be executed in a cron jobs
- increase version to trigger database migration
12 years ago
Robin Appelman
8c5521fdfc
Add $storage->instanceOfStorage to handle instanceof for storage wrappers
12 years ago
Robin Appelman
467e9c2bb0
Remove code duplication
12 years ago
Robin Appelman
488fc402e4
remove unneeded check
13 years ago
Robin Appelman
d15ed9b4d3
use \OC\Files\Filesystem::isIgnoredDir
13 years ago
Robin Appelman
ea44f0e20f
fix recursive copy and rename for common storage backend
13 years ago
Robin Appelman
151c48494e
Add a config option fro setting the filesystem watcher policy
12 years ago
Bjoern Schiessle
12338e0ef0
allow admin to disable sharing for specific groups of users
12 years ago
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
12 years ago
Bart Visscher
a4b7f5155f
Fix PHPdoc in lib/private
using scrutinizer patch
12 years ago
Robin Appelman
1c7a71ca77
use binary safe read
12 years ago
Robin Appelman
54a15a8001
Use streams when generating hashes of remote files
12 years ago
Vincent Petry
0067a4eac2
Added missing fclose in file_get_contents and file_put_contents
12 years ago
Vincent Petry
d6ce45fe61
Correctly read the full stream in file_get_contents
When using user-defined stream wrappers, PHP will
return a maximum of 8192 bytes even if more was
requested.
This fix uses stream_get_contents to make sure the full stream is read
and not only the first 8 KB.
Added unit test with a bigger test file to cover this case.
12 years ago
Robin Appelman
7a8f1389fe
fix temporary file based common hash
12 years ago
Robin Appelman
a8c67dc675
Add caching for getLocalFile on remote storages
12 years ago
Vincent Petry
a23ef25010
Removed unused deleteAll method on Common storage class
The "deleteAll" method on the Common storage class isn't used anywhere.
Also, it isn't defined on the Storage interface so this fix removes it
completely.
12 years ago
Vincent Petry
788c8540aa
Added isLocal() method to storage, used for xsendfile
Added isLocal() method to Storage to find out whether the storage is
local or not.
This method is used for the x-sendfile logic to find out whether to add
the headers.
12 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
12 years ago
Vincent Petry
c62cce8269
Moved default isReadable/isUpdatable impl into Common class
Also adjusted all ext storage backends to not override these when the
default behavior is expected.
12 years ago
Robin Appelman
a0d570b4cc
Change default mimetype detection for storage backends to only use filename
12 years ago
Robin Appelman
32a703ab36
Do not use -1 as the size for the root folder of the home storage
12 years ago
Thomas Müller
9c9dc276b7
move the private namespace OC into lib/private - OCP will stay in lib/public
Conflicts:
lib/private/vcategories.php
12 years ago
Arthur Schiwon
ec3639dc7a
Always check variable type before using readdir to avoid surprises
12 years ago
Robin Appelman
c5402f4575
use strict equals in readdir loops to prevent issues with '0' files
13 years ago
Robin Appelman
94560c68ba
rename constants
13 years ago
Michael Gapczynski
09ff46eda2
Remove user name addition to paths in deleteAll
13 years ago
Florin Peter
3c100af132
revert changes to fbbc76f281 because master is very unstable right now
13 years ago
Robin Appelman
bcd9a69033
Cache: seperate handing of numeric storage id's to it's own class
13 years ago
Bart Visscher
50fb13c861
Remember the contructed OC\Files\Cache\* classes in OC\Files\Storage\Common
13 years ago
Robin Appelman
52dccd4aa1
Storage: don't throw warnings when a stat fails
13 years ago
Robin Appelman
6b33a23a51
Code style
13 years ago
Bart Visscher
bb75dfc021
Whitespace fixes
13 years ago
Björn Schießle
d8137fdf66
return both, count and result if the operation succeeded or failed. Maybe in some cases it is useful to know how much bytes where copied
13 years ago
Robin Appelman
d96146a017
Give storage backends the option to define having no known free space
When this is the case only the configured max upload size is taking into account for uploading
13 years ago