Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: os.freespace - Function Up: os - Tool Previous: os.filetimestring - Function


os.size - Function



Package utility
Module misc
Tool os


determine file or directory sizes


Synopsis
size(pathname, follow)


Description
Determine the file sizes in bytes. When a file is a directory, the size is the sum of the sizes of all files in the directory, including all files in subdirectories. It is similar to the UNIX command du -s.
By default it follows a symbolic link.



Example
  dos.size ('~/aips++/test/hol.ms')
# 2.59398e+07



Arguments

pathname in path name
    Allowed: vector of strings
    Default: '.'
follow in follow symlink?
    Allowed: bool
    Default: T


Returns
vector of doubles or fail




next up previous contents index
Next: os.freespace - Function Up: os - Tool Previous: os.filetimestring - Function   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15