i want to move a single file from a folder. i tried my level best. but the all the files from the folder is moving.
pls anyone is there to solve my problem.
hidash_in -9 Junior Poster in Training
Recommended Answers
Jump to PostWell, post your code, but file.rename(), on a single file, shouldn't be beyond you.
Jump to PostAs far as the functioning of that code it should be okay, but the complaint is that all files were getting "moved". This will definately only "move" (actually copy and delete, which isn't the same thing) one file, so, obviously, we would need the code from which you are calling …
All 8 Replies
masijade 1,351 Industrious Poster Team Colleague Featured Poster
hidash_in -9 Junior Poster in Training
javaAddict 900 Nearly a Senior Poster Team Colleague Featured Poster
masijade 1,351 Industrious Poster Team Colleague Featured Poster
hidash_in -9 Junior Poster in Training
masijade 1,351 Industrious Poster Team Colleague Featured Poster
hidash_in -9 Junior Poster in Training
masijade 1,351 Industrious Poster Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.