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 8336775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:05:55+00:00 2026-06-09T04:05:55+00:00

I have a module with a pretty annoying tree structure like this APP -CODE

  • 0

I have a module with a pretty annoying tree structure like this

APP  -CODE    - COMMUNITY - VB - FILE 1
                                - FILE 2        
     -DESIGN - ADMIN - DEFAULT - FILES
             - FRONTEND - DEFAULT - MORE FILES

The existing application already has an APP folder that shares some of the same folder names going along the tree.

The app is currently unzipped to a folder called __MACOSX, I’ve tried to copy the contents using a sudo mv __MACOSX/* command but it has said ‘cannot move… Directory not empty’.

My FTP program would just add all files into their directories and ask if I wanted to overwrite any if there was a duplicate. On this new server I only have SSH access so I was wondering if there is way to copy across the folders so they will populate the directories in APP?

  • 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-06-09T04:05:56+00:00Added an answer on June 9, 2026 at 4:05 am

    You can use the recursive (-R) flag to the cp command to do what you want. For example, if I have:

    __MACOSX/
      dir1/file1
      dir1/file2
      dir2/file3
    

    And I have:

    app/
      dir1/
    

    Then I can run:

    cp -R __MACOSX/* app/
    

    And I will end up with:

    app
    app/dir1
    app/dir1/file1
    app/dir1/file2
    app/dir2
    app/dir2/file3
    

    …which is what I think you want to do.

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

Sidebar

Related Questions

Say i have this code to separate routes in expressjs: module.exports = function(express,app,client) {
I have a question about best practices with the Module Design Pattern. The code
I have the following Java code running in a media module: File file =
I have module application. When I run it, the main window of that app
I have this module pattern that stores a bunch of vars. I want to
I have the pretty print module, which I prepared because I was not happy
The question is pretty simple actually. I have a module in my system containing
In magento I have started to set up an admin module and am not
I am trying to organize my code using the revealing module pattern. I have
I'm pretty new to Python and, in writing an app, have ended up with

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.