# -*- coding: utf-8 -*-
import os
import shutil
book='segment3157556'
folder='segment3157556'
for foldername in os.listdir(folder):
    if not foldername.startswith('.'):
        if len(os.listdir(folder+'/'+foldername))>=10:
            shutil.move(folder+'/'+foldername,book+'10/'+foldername )

af20b49574d7f56816b5b718373fb67e66307299
<mask token>

<mask token>
for foldername in os.listdir(folder):
    if not foldername.startswith('.'):
        if len(os.listdir(folder + '/' + foldername)) >= 10:
            shutil.move(folder + '/' + foldername, book + '10/' + foldername)

<mask token>
book = 'segment3157556'
folder = 'segment3157556'
for foldername in os.listdir(folder):
    if not foldername.startswith('.'):
        if len(os.listdir(folder + '/' + foldername)) >= 10:
            shutil.move(folder + '/' + foldername, book + '10/' + foldername)

import os
import shutil
book = 'segment3157556'
folder = 'segment3157556'
for foldername in os.listdir(folder):
    if not foldername.startswith('.'):
        if len(os.listdir(folder + '/' + foldername)) >= 10:
            shutil.move(folder + '/' + foldername, book + '10/' + foldername)

# -*- coding: utf-8 -*-
import os
import shutil
book='segment3157556'
folder='segment3157556'
for foldername in os.listdir(folder):
    if not foldername.startswith('.'):
        if len(os.listdir(folder+'/'+foldername))>=10:
            shutil.move(folder+'/'+foldername,book+'10/'+foldername )
