Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7578567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:27:47+00:00 2026-05-30T17:27:47+00:00

I inherited a project at work and at a certain point I’m supposed to

  • 0

I inherited a project at work and at a certain point I’m supposed to send (recursively) a folder and its content to a ftp server using QFtp (connected with signals and slots).

This works perfectly okay except that if I try to create a destination directory :

m_pFtp->mkdir(sRemoteFullPath);

and that directory already exist, all subsequent commands won’t execute (all the put() and other mkdir() for deeper folders that already have been ‘started’).
I do catch the error but all other commands are discarded and not carried out (if I debug-jump the mkdir() when I know the folder exists, everything works fine).

So my question is, is there a way to :

A) Ignore this ‘error’ (“Creating directory failed: Directory already exixts”)?

or

B) Somehow only create the directory if it doesn’t exist?

I know that I can do it ‘the long way’, ie. scanning the whole subfolder structure on the server and act accordingly but a simpler solution would be both faster (to code) and in my opinion neater 🙂

Thanks!

ps. I’m using WinXP, Qt and Filezilla server.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:27:49+00:00Added an answer on May 30, 2026 at 5:27 pm

    After some looking, it seems the “Long Way” is in fact the way everyone recommends.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've just inherited a project which was maintained using Git. At one point, the
I inherited a project that uses SQL Server 200x, wherein a column that stores
I've just inherited a project, and been told that an entire folder, includes/ needs
I need to work on a project using open source software, mahout. An example
Lately I have been using reflection to work in my project, and I have
I have a reasonably large project at work that I've inherited. It's an ASP.NET
I've inherited a Maven project. I'm just using it as a build tool and
I work on an inherited project, old enough to use EJB 2.1 and JBoss
for a project of mine I inherited a ComboBox to change its size behaviour.
I have inherited a project that uses LLBLGen Pro for the DB layer. The

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.