Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
server
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Nextcloud
server
Commits
035d83fe
Commit
035d83fe
authored
Oct 8, 2012
by
Robin Appelman
Browse files
Options
Downloads
Patches
Plain Diff
don't use the workaround for shared files on the /Shared folder
parent
025d3089
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/files.php
+10
-6
10 additions, 6 deletions
lib/files.php
with
10 additions
and
6 deletions
lib/files.php
+
10
−
6
View file @
035d83fe
...
@@ -43,12 +43,16 @@ class OC_Files {
...
@@ -43,12 +43,16 @@ class OC_Files {
*/
*/
public
static
function
getFileInfo
(
$path
)
{
public
static
function
getFileInfo
(
$path
)
{
if
((
$path
==
'/Shared'
||
substr
(
$path
,
0
,
8
)
==
'/Shared/'
)
&&
OC_App
::
isEnabled
(
'files_sharing'
))
{
if
((
$path
==
'/Shared'
||
substr
(
$path
,
0
,
8
)
==
'/Shared/'
)
&&
OC_App
::
isEnabled
(
'files_sharing'
))
{
if
(
$path
==
'/Shared'
)
{
list
(
$info
)
=
OCP\Share
::
getItemsSharedWith
(
'file'
,
OC_Share_Backend_File
::
FORMAT_FILE_APP_ROOT
);
}
else
{
$info
[
'size'
]
=
OC_Filesystem
::
filesize
(
$path
);
$info
[
'size'
]
=
OC_Filesystem
::
filesize
(
$path
);
$info
[
'mtime'
]
=
OC_Filesystem
::
filemtime
(
$path
);
$info
[
'mtime'
]
=
OC_Filesystem
::
filemtime
(
$path
);
$info
[
'ctime'
]
=
OC_Filesystem
::
filectime
(
$path
);
$info
[
'ctime'
]
=
OC_Filesystem
::
filectime
(
$path
);
$info
[
'mimetype'
]
=
OC_Filesystem
::
getMimeType
(
$path
);
$info
[
'mimetype'
]
=
OC_Filesystem
::
getMimeType
(
$path
);
$info
[
'encrypted'
]
=
false
;
$info
[
'encrypted'
]
=
false
;
$info
[
'versioned'
]
=
false
;
$info
[
'versioned'
]
=
false
;
}
}
else
{
}
else
{
$info
=
OC_FileCache
::
get
(
$path
);
$info
=
OC_FileCache
::
get
(
$path
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
sign in
to comment