Pennsylvania's ethics rules state,
Quote Quoting Rule 1.16(d)
Upon termination of representation, a lawyer shall take steps to the extent reasonably practicable to protect a client's interests, such as giving reasonable notice to the client, allowing time for employment of other counsel, surrendering papers and property to which the client is entitled and refunding any advance payment of fee or expense that has not been earned or incurred. The lawyer may retain papers relating to the client to the extent permitted by other law.
That's annotated,
Quote Quoting Assisting the Client upon Withdrawal
[9] Even if the lawyer has been unfairly discharged by the client, a lawyer must take all reasonable steps to mitigate the consequences to the client. The lawyer may retain papers as security for a fee only to the extent permitted by law. See Rule 1.15.
The Pennsylvania Attorney Disciplinary Board explains,
Quote Quoting I. RETAINING FILE AND PROPERTY
Can an attorney keep my file when he/she no longer represents me?

Under certain circumstances, an attorney can assert a legal claim. However, depending on the circumstances, an attorney may be required to provide the client with a copy of his/her file in order to avoid damaging the client's legal position in the underlying matter for which the attorney was retained.


Do I have to pay for a copy of my file?

If you have paid an attorney for representation, Pennsylvania law says that the file is your property at the conclusion of the case, and you should not be charged for copies the lawyer makes to keep for his or her own purposes. However, if the attorney has already provided you with copies of documents and you request subsequent or additional copies, you may be charged. It also depends on what the fee agreement states.