Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 76d03336 authored by jruesga's avatar jruesga
Browse files

Fix statistics computation for symlinks

parent 77bf8cde
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -362,8 +362,16 @@ public class FsoPropertiesDialog
     */
    private void computeFolderUsage() {
        try {
            if (this.mFso instanceof Symlink && ((Symlink) this.mFso).getLinkRef() != null) {
                this.mFolderUsageExecutable =
                CommandHelper.getFolderUsage(this.mContext, this.mFso.getFullPath(), this, null);
                        CommandHelper.getFolderUsage(
                                this.mContext, 
                                ((Symlink) this.mFso).getLinkRef().getFullPath(), this, null);
            } else {
                this.mFolderUsageExecutable =
                    CommandHelper.getFolderUsage(
                            this.mContext, this.mFso.getFullPath(), this, null);
            }
        } catch (Exception cause) {
            //Capture the exception
            ExceptionUtil.translateException(this.mContext, cause, true, false);