Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
aeed130b
Commit
aeed130b
authored
Jun 17, 2012
by
Robin Appelman
Browse files
improve caching smb results a bit
parent
8a902d8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/files_external/lib/smb.php
View file @
aeed130b
...
...
@@ -60,6 +60,10 @@ class OC_FileStorage_SMB extends OC_FileStorage_StreamWrapper{
}
}
public
function
filetype
(
$path
){
return
(
bool
)
$this
->
opendir
(
$path
);
//using opendir causes the same amount of requests and caches the content of the folder in one go
}
/**
* check if a file or folder has been updated since $time
* @param int $time
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment