Robin Appelman
2974d4d380
Reset the users setup after clearing mounts
11 years ago
Robin Appelman
3f63f4b6b1
Only mount the storages for the user once
11 years ago
Vincent Petry
6585eaa5df
Added failing unit tests for mount config hooks
11 years ago
Robin Appelman
a9a37b5363
Don't automatically setup the filesystem the moment we load OC\Files\FileSystem
11 years ago
Morris Jobke
b3b3354809
move to public namespace
12 years ago
Stephan Peijnik
5d7deefd95
Use tabs for indentation.
Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
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
Jörn Friedrich Dreyer
5cae863408
change architecture from inheritance to composition
12 years ago
Jörn Friedrich Dreyer
4e65889f54
only use one config option 'objectstore' for root and home storage configuration
12 years ago
Jörn Friedrich Dreyer
10de4a7b90
move creation of / and users 'files' from storage constructor to setupFS / mount initialization
12 years ago
Jörn Friedrich Dreyer
1374ba9adf
fix fallback config for default home storage
12 years ago
Jörn Friedrich Dreyer
3c66a8c8ed
allow configuring objectstore as home and root storage
12 years ago
Bjoern Schiessle
ab6680e9ab
name the storage wrapper to make sure that we don't apply the wrapper multiple times
12 years ago
Morris Jobke
dc36d30953
Remove all occurences of @brief and @returns from PHPDoc
* test case added to avoid adding them later
12 years ago
Robin McCorkell
87b548ed91
Fix all PHPDoc types and variable names, in /lib
12 years ago
Robin McCorkell
b5bc37d2e4
Fix @return array PHPDocs, in /lib
12 years ago
Joas Schilling
4fa9e46d2b
Emit a new hook, when a file is being updated only
The write-hook also is triggered for created files
Fix #8131
12 years ago
Robin Appelman
3d0661a1e7
Fix error when viewing expired link
12 years ago
Vincent Petry
e76be308eb
Remove unused setUserVars utility method
That method was moved to the external storage recently so
isn't needed here any more.
12 years ago
Vincent Petry
10c9b8eb99
Cache folder is now configurable
When using an external cache folder, it is automatically mounted in
FileSystem::initFileSystem so that any app can use it transparently
by creating a view on the "/$user/cache" directory.
12 years ago
Vincent Petry
4cb53f77b2
Moved external storage mounting code to files_external app
Moved the mounting code for external storage from
OC\Filesystem::initMountPoint to files_external using the
post_initMountPoints hook
12 years ago
Robin Appelman
7c92e2e3ad
Update rawlist to work with new fileinfo object
12 years ago
Lukas Reschke
f11658698d
Fix path to the mount file
12 years ago
Scrutinizer Auto-Fixer
adaee6a5a1
Scrutinizer Auto-Fixes
This patch was automatically generated as part of the following inspection:
https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720
Enabled analysis tools:
- PHP Analyzer
- JSHint
- PHP Copy/Paste Detector
- PHP PDepend
12 years ago
Robin Appelman
d18b9f6ea4
use a FileInfo object of the directory when generting the filelist
12 years ago
Jörn Friedrich Dreyer
2a6a9a8cef
polish documentation based on scrutinizer patches
12 years ago
Tigran Mkrtchyan
8cc9727520
mount: make location of mount.json configurable
do not share users data with config files
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
12 years ago
Vincent Petry
614e4d485c
External storage space is now not counted in total space
Added argument to getFileInfo() to disable adding the size of
mountpoints to a directory's size.
Fixes #5924
12 years ago
Vincent Petry
c06d8bb007
Fixed normalizePath() to strip out single dot dirs
Now removing "/./" and trailing "/." from the paths when normalizing.
12 years ago
Vincent Petry
34c92f6656
Now using HomeStorage for legacy home storage ids
Legacy home storage ids with the format "local://path/to/datadir/user1"
are now also wrapped by the HomeStorage.
12 years ago
Robin Appelman
0e92a4896d
dont use the home storage for non-existing users
12 years ago
Robin Appelman
e273c14540
use the new home storage backend when no existing local storage backend exists for the user's home
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
Robin Appelman
5209cff371
add conveince function to wrap all storages
13 years ago
Robin Appelman
94560c68ba
rename constants
13 years ago
Robin Appelman
b397df2022
add option to get the mountmanager from the filesystem
13 years ago
kondou
d9c697534d
Fix some typos
13 years ago
Robin Appelman
94ca576c9a
use a getter for the storage loader to ensure the instance is created
13 years ago
Robin Appelman
2708ab09ab
storage loader needs to be accessible by apps
13 years ago
Robin Appelman
bd67512409
manage creating and wrapping storages in it's own class
13 years ago
Robin Appelman
38bd234686
make sure the filesystem is setup before doing mount operations
13 years ago
Robin Appelman
b5e817d638
fix clearing mounts when filesystem isn't initialized yet
13 years ago
Florin Peter
736f10039d
changed builtin normalizer to \OC_Util::normalizeUnicode
13 years ago
Florin Peter
58a8d67a9b
fix for webdav because initMounts() is triggered twice so we lost the root path
13 years ago
Florin Peter
b3b6738d59
Revert "fix for webdav and wrong reference for findByStorageId"
This reverts commit 079f918d5c .
13 years ago
Florin Peter
079f918d5c
fix for webdav and wrong reference for findByStorageId
13 years ago
Michael Gapczynski
41e2d64c86
Add support for copying/moving folders between storages, move isIgnoredDir() to Filesystem
13 years ago
Florin Peter
c50bf3e3c5
fix for losing mount point "/"
13 years ago
Florin Peter
807740a07a
fix for losing mount point "/"
13 years ago
Florin Peter
791751b529
added setter for filesystem view
this is needed because there is no possibility to set $defaultInstance to false after filesystem::init
13 years ago