mò áüGc@sedkZdkZdkTdkTdefd„ƒYZdefd„ƒYZed„Zd„Z dS(N(t*tFreeDiskcBstZd„ZRS(NcCsti|dƒdS(Nscan't compute free disk space(t Exceptiont__init__tself(R((tb/home/faculty/youssef/public_html/pacman/sample_cache/tarballs/pre/tmp/pacman-3.29/src/freedisk.pyR s(t__name__t __module__R(((RR stFreeDiskOSErrorcBstZd„Zd„ZRS(NcCsdS(N((R((RRscCsdS(Ns(Cannot handle the operating system type.((R((Rt__str__s(RRRR (((RRs cCs8tƒ}t|ƒ|jotd|dƒ}n|S(NsOut of disk space at [s].(tReasontrt localmegstpatht minimumDisk(RR R ((RtenoughFreeDisks cCsWd}y.t|ƒ}tƒ} tidjondk}|i |ƒ\} }}}t| ƒ} t|ƒ}t|ƒ}t|ƒ}|| |dd}n˜| itdƒƒon~| itdƒƒoodk}tid|ƒiƒ} y!t|i| dƒdƒ}Wq3tj otd |d ƒq3Xnù| itd ƒƒp| itd ƒƒohttd ƒp tƒ‚ndk} ti|ƒ| i} ti|ƒ| i}| d|d}nettd ƒp tƒ‚ndk} ti|ƒ| i} ti|ƒ| i}| d|d}Wnt!j o ‚nnX|S(NiÿÉš;twin32itDarwintcygwinsdf -m iÿÿÿÿis Directory [s] does not exist.tlinuxtsuntstatvfsiè("tfreetfullpathtpath0R tPlatformtptsystplatformt win32filetGetDiskFreeSpacetsectorsPerClustertbytesPerSectortnumFreeClustersttotalNumClusterstlongt satisfiest PlatformGEtstringtostpopent readlinestlinestinttsplitt IndexErrortabortthasattrRRtF_BAVAILt nfree_blockstF_BSIZEt blocksizetKeyboardInterrupt(RR"R3RR&R RR!R R1RR*RR((RR sN        !,    ( RR'RtBaseRRRt pac_anchorRR (RR RRRR'((Rt?s