Files app: Change FMP.StartCopy to ues MyFiles path to check disk space
Change the FileManagerPrivate API to use MyFiles path to check for disk space for StartCopy method. The net result for this change is 0,because the implementation actually uses statvfs [1] to check the spaceavailable which checks the space used by the whole volume, so the result is literally the same with Downloads or MyFiles path, however this is more correct. Note that when MyFilesVolume flag is disabled it'll still use Downloads path because the function GetMyFilesFolderForProfile handles that accordingly. [1] - http://man7.org/linux/man-pages/man2/statvfs.2.html Bug: 873539 Change-Id: I44cafdb35ee4f8825c45fa85793ccdac80d9e14c Reviewed-on: https://chromium-review.googlesource.com/c/1352127Reviewed-by:Joel Hockey <joelhockey@chromium.org> Commit-Queue: Luciano Pacheco <lucmult@chromium.org> Cr-Commit-Position: refs/heads/master@{#611901}
Showing
Please register or sign in to comment