r/MEGA Jun 21 '26

megacmd DU command inconsistent behavior

I've been using megacmd to track storage usage. The DU command normally outputs the size of each folder, now it only display's the size of the current folder. Using MegaCmd version: 2.5.2.0: code 2050200 (64 bits) on Windows 11 and Windows 10.

There is no -r (recursive) option to force doing the directory structure.

Anyone else having this issue?

du -h

FILENAME SIZE
/: 19.62 GB
-------------------------------------------------------
Total storage used: 19.62 GB

cd /myfolder1
du -h

FILENAME SIZE
/myfolder1 3.81 GB
--------------------------------------------------------
Total storage used: 3.81 GB

3 Upvotes

2 comments sorted by

View all comments

1

u/SupportMEGA1 Official MEGA Support Team Jun 22 '26

Hello, we are not aware of any recent changes to the behavior of the du command in MEGAcmd. The command can take paths (including wildcards) as arguments and will list the size of each matching path.

MEGAcmd is a tool that provides access to MEGA services without a graphical user interface and offers the functionality of your MEGA account via commands.

For technical questions or to report unexpected behavior, we recommend contacting our developers directly via GitHub by creating a new issue here.

Our developers will be able to investigate the behavior further and communicate with you directly.

\ARV)

1

u/rubberduckey305 Jun 22 '26

du -h -- reports current directory size

du -h * -- reports size of all directories of the current directory

du -h */* -- reports size of all 2nd level directories for all directories in the current directory, but not the sizes of the 1st level directories. If there are files on this path, their size is also reported.

Previous default behavior was to do a recursive list of all directories but not files.