'Hacks to make the filesystem look normal.'

def FileHacks(self):

    if (sys.platform == 'win32'):
        import win32api
        if (self.path == '/'):
            self.files = win32api.GetLogicalDriveStrings().split('\x00')
            self.files = [drive.rstrip('\\') for drive in self.files if drive]
        elif (re.match('/*\\\\\\\\.\\\\[^\\\\]+\\\\?$', self.path) is not None):
            self.size = 9223372036854775807
            self.path = self.path.rstrip('\\')
            self.alignment = 512
    elif (sys.platform == 'darwin'):
        if re.match('/dev/r?disk.*', self.path):
            self.size = 9223372036854775807
            self.alignment = 512
