In File System API (and thus in Files.app) files are identified by file names, so duplicated file names are not allowed. However some file system backends allow it (e.g. Google Drive and Android Documents Provider), so we rename those files on presenting files to users.
Currently we have at least two implementation to do this work:
- components/drive/chromeos/resource_metadata.cc
- chrome/browser/chromeos/arc/fileapi/arc_documents_provider_root.cc
We want to consolidate the implementation. Maybe we can place a shared util in storage/browser/fileapi.
Comment 1 by hashimoto@chromium.org
, Dec 20 2016