the property i'm renting has been foreclose on what rights do i have as a tenant?

i have rented this property from the previous owner for 4 years. can the new owner tell me to move or do they legally have to evict me.
Discussions about business and finance
https://sldnug.net/