496 systems. |
496 systems. |
497 |
497 |
498 @return tuple of tuples containing the file system name, the total |
498 @return tuple of tuples containing the file system name, the total |
499 size, the used size and the free size |
499 size, the used size and the free size |
500 @rtype tuple of tuples of (str, int, int, int) |
500 @rtype tuple of tuples of (str, int, int, int) |
|
501 @exception IOError raised to indicate an issue with the device |
501 """ |
502 """ |
502 commands = [ |
503 commands = [ |
503 "import os", |
504 "import os", |
504 "\n".join([ |
505 "\n".join([ |
505 "def fsinfo():", |
506 "def fsinfo():", |
567 @rtype dict |
568 @rtype dict |
568 @exception IOError raised to indicate an issue with the device |
569 @exception IOError raised to indicate an issue with the device |
569 """ |
570 """ |
570 commands = [ |
571 commands = [ |
571 "import sys", |
572 "import sys", |
572 "res = {}", |
573 "res = {}", # __IGNORE_WARNING_M613__ |
573 "\n".join([ |
574 "\n".join([ |
574 "try:", |
575 "try:", |
575 " res['name'] = sys.implementation.name", |
576 " res['name'] = sys.implementation.name", |
576 "except AttributeError:", |
577 "except AttributeError:", |
577 " res['name'] = 'unknown'", |
578 " res['name'] = 'unknown'", |