Question: Please help, in Python; Suppose you have a file made of pathnames in the form: /asu.edu/enrollments/customers/unix/inbound/IFT383_Payment_20171001.csv.pgp /asu.edu/enrollments/customers/unix/inbound/Ift250_CAD_20171001.csv.pgp /asu.edu/enrollments/customers/network/inbound/ift259_TEST_20171001.csv Prompt the user to enter a pathname

Please help, in Python;

Suppose you have a file made of pathnames in the form:

/asu.edu/enrollments/customers/unix/inbound/IFT383_Payment_20171001.csv.pgp

/asu.edu/enrollments/customers/unix/inbound/Ift250_CAD_20171001.csv.pgp

/asu.edu/enrollments/customers/network/inbound/ift259_TEST_20171001.csv

Prompt the user to enter a pathname to a file, then use List features to:

Extract the directory name: e.g., unix

Extract the filename

Extract the extension: e.g., pgp Is it a payment file (filename contains Payment)?

We wish to move every file to the location - /asu.edu/enrollments/customers/archive/

Build the new full pathname for the file entered

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!