Christoph Wurst
14c996d982
Use elseif instead of else if
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Christoph Wurst
5bf3d1bb38
Update license headers
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
6 years ago
Robin Appelman
f2724992fc
cast ctime and utime
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 years ago
Robin Appelman
136c4ef925
dont expose metadata etag for now
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 years ago
Robin Appelman
1b6e647b63
expose filecache extension data in FileInfo
Signed-off-by: Robin Appelman <robin@icewind.nl>
6 years ago
Robin Appelman
8fc47c6f00
add option to get raw size (without submounts) from fileinfo
Signed-off-by: Robin Appelman <robin@icewind.nl>
7 years ago
Robin Appelman
e5c3e4b76f
Add getExtension() to FileInfo
this is a fairly common operation so it makes sense to prevent having
to repeatedly implement it.
Signed-off-by: Robin Appelman <robin@icewind.nl>
7 years ago
Robin Appelman
ea42474b31
use name in fileinfo if set
Signed-off-by: Robin Appelman <robin@icewind.nl>
8 years ago
Morris Jobke
0eebff152a
Update license headers
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
8 years ago
Julius Härtl
4cfa1c66b8
Doc: Fix phpDoc issues
Signed-off-by: Julius Härtl <jus@bitgrid.net>
9 years ago
1 Man Projects
3e5d590f1e
changed direct cast to integer to numerical value
9 years ago
1 Man Projects
56c0384044
Removed cast to integer in getSize
Fixes - Wrong or no sizes of files/folders #5031
9 years ago
Morris Jobke
c54a59d51e
Remove unused use statements
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Joas Schilling
88015bc51f
Fix type hints and doc blocks
Signed-off-by: Joas Schilling <coding@schilljs.com>
9 years ago
Piotr M
5c7079f8c6
Ensure that FileInfo return values as required by its phpdoc.
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
9 years ago
Robin Appelman
0ee958595e
Improve isMounted to handle primary storage object store
Signed-off-by: Robin Appelman <robin@icewind.nl>
10 years ago
Robin Appelman
cbcdf69dc2
only query substorages to calculate the final mtime/size/etag lazily
Signed-off-by: Robin Appelman <robin@icewind.nl>
9 years ago
Joas Schilling
0215b004da
Update with robin
10 years ago
Joas Schilling
ba87db3fcc
Fix others
10 years ago
Lukas Reschke
aba539703c
Update license headers
10 years ago
Roeland Jago Douma
dedf392751
Move \OC\Files to PSR-4
10 years ago
Lukas Reschke
c353d51810
Remove Scrutinizer Auto Fixer
10 years ago
Lukas Reschke
933f60e314
Update author information
Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
10 years ago
Lukas Reschke
5ccb9dfa7e
Use database for keeping track of the version
10 years ago
Roeland Jago Douma
2035a179bc
Add store/retrieve checksums
* Add extra db column to filecache
* Bump version
* Update filecache code to actually handle checksum
* Webdav code to store/retrieve checksums
10 years ago
Robin Appelman
6d321f5f6b
Return a class from cache operations instead of an array
10 years ago
Thomas Müller
682821c71e
Happy new year!
10 years ago
Vincent Petry
6e4006d139
Add reshare permission checks
Added in isSharable() in incoming remote share.
Added in isSharable() in regular incoming share.
Added in FileInfo to make sure the proper attributes are returned to the
clients.
10 years ago
Vincent Petry
e241d26316
Compute share permissions in the view
The share permissions are now computed in the View/FileInfo instead of
storing them directly/permanently on the storage
10 years ago
Robin Appelman
888df3933d
take the etag of child mounts into account for the folder etag
this replaces shared etag propagation
10 years ago
Robin Appelman
1736c70075
Some more cleanup for getFIleInfo/getDirectoryContent
10 years ago
Robin Appelman
331ef0e3c0
Add getOwner to FileInfo
11 years ago
Morris Jobke
b945d71384
update licence headers via script
11 years ago
tbartenstein
c48e00294c
Update fileinfo.php
Edits isMounted() to remove the check for 'local' prefix, so that folder icons are displayed correctly (see issue #10712 )
11 years ago
Bjoern Schiessle
0eee3a2618
remove unencrypted_size from the cache, size will contain the unencrypted size
11 years ago
Bjoern Schiessle
ff9c85ce60
implement basic encryption functionallity in core to enable multiple encryption modules
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
6a1a4880f0
Updating license headers
11 years ago
Robin McCorkell
a79757bc37
Store FileInfo::getType() result for future use
11 years ago
Robin Appelman
fd85424742
Add getMountPoint to FileInfo
11 years ago
Joas Schilling
2c39aec8cb
Replace deprecated constant with new class constant
11 years ago
Lukas Reschke
6535540dcd
Check if the size field is available
In some cases the 'size' field is not available resulting in some PHP errors such as:
```json
{"reqId":"03548fd9e3d3aca15a5796b3b35d7b9d","remoteAddr":"::1","app":"PHP","message":"Undefined index: size at \/Users\/lreschke\/Programming\/core\/lib\/private\/files\/fileinfo.php#125","level":3,"time":"2014-11-17T21:38:57+00:00"}
```
This can be experienced when creating a new empty file and deleting it right away, then when going to the trash bin this error is thrown.
11 years ago
Robin Appelman
ccb4475a8d
Expose creatable permissions trough fileinfo
12 years ago
Thomas Müller
9d2cff50ed
shared files/folders are not mounted
12 years ago
Robin Appelman
dea5219244
Fix folder name for storage root
12 years ago
Robin McCorkell
a7ae2e874a
Squash 'a | b' into 'a|b', in /lib
12 years ago
Thomas Müller
c92c577b5e
- Introduce isShared() and isMounted() on FileInfo class
- Reuse these methods on determineIcon()
- Generate permission string for the desktop client
- expose {http://owncloud.org/ns }permissions as additional WebDAV property containing the permission string
12 years ago
Robin Appelman
51165a1a04
Check if value exists before returning
12 years ago
Robin Appelman
65f52fee4f
Fix FileInfo->getType errors
12 years ago