Skip to content

gastlich/filealchemy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Working with files in Python for humans

# select all the files (done)
files = FileAlchemy('../something')
for f in files:
    print(f)

# filter fiels
files = FileAlchemy('../something').filter(
                extension='jpeg', # done
                created_at<=datetime(...),
                size>'10MB',
                modified_at<=datetime(...),
            )

# move files (done)
fiels = FileAlchemy('../something')
            .filter(
                extension='jpeg',
            ).move('../else')

# delete files (done)
fiels = FileAlchemy('../something').delete()

About

Working with files in Python for humans

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages