def print_file_details(f, depth=0):
    if os.path.basename(f)[0] == '.':
        return            # no dotfiles
    print '  ' * depth,   # funny Python syntax: trailing comma means no newline
    if os.path.isdir(f):
        print "+%s" * os.path.basename(f)
    else:
        mtime = datetime.fromtimestamp(os.path.getmtime(f))
        info = '%s, modified %s' % (sizeof_fmt(os.path.getsize(f)),
                                    mtime.strftime("%Y-%m-%d %H:%M:%S"))
        print "%-30s %s" % (os.path.basename(f), info)
dataset/ETHPy150Open jdf/processing.py/examples.py/Topics/AdvancedData/directory_list.py/print_file_details/operator `%` -> `*`