-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
occ files:scan The dates of creation of folders are changed to the date of the scan #35148
Comments
folder creation is not relevant for ownCloud, it's not used anywhere. does the modification time change ? I'm not aware of any process that would touch the date/times of folders directly on disk. The scanner is not supposed to touch the storage in general. |
Dear @PVince81 The modification occurs in the database, the files and folders on the hard disk remain intact. In the desktop client nothing is modified at all. The modification appears in the web version of owncloud and in the client for Android that I use, I fear that it will also happen in the other cell phone clients. Yes it is relevant because all folders appear in such clients as recently created and it is impossible to sort by date to quickly access the last created, which is a function that I use often and I think many users. If this is not relevant to the developers of ownloud, I am sorry to read it and I hope it is a misinterpretation. I repeat that for me as a user it is a relevant problem. I would like to inform you that I found the inelegant solution in this link that refers to Nextcloud: Basically by accessing the database and executing the query: UPDATE oc_filecache SET mtime=storage_mtime I would expect a more elegant solution from the owncloud developers |
ok, so it's not creation date but mtime of folders. I don't think the scanner is supposed to touch these mtimes in the database so would consider it a bug. |
Ok, it is the creation date of the folders that are changed. mtimes of folders make them look that way in the web and mobile version. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
Steps to reproduce
Expected behaviour
Files with problems are indexed and appear in the web and desktop client. The original creation date of files and folders are maintained.
Actual behaviour
Files with problems are indexed and appear in the web and desktop client. The dates of creation of folders are changed to the date of the scan. The dates of the files are maintained.
Server configuration
Operating system: Ubuntu 16.04
Web server: Apache 2.4.18
Database: MariaDB-10.2.23
PHP version: 7.0.33-0ubuntu0.16.04.4
ownCloud version: ownCloud 10.1.1 (production)
Updated from an older ownCloud or fresh install: Updated from an older ownCloud
Where did you install ownCloud from: https://owncloud.org/download/
Signing status (ownCloud 9.0 and above):
The content of config/config.php:
List of activated apps:
Are you using external storage, if yes which one: local/smb/sftp/... No
Are you using encryption: no
Referenced: nextcloud/server#1583
The text was updated successfully, but these errors were encountered: