Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » cleanup -d missing?(Looking for cleanup with deleting directories)
cleanup -d missing? [message #1720370] Mon, 18 January 2016 09:19 Go to next message
Ro Ko is currently offline Ro KoFriend
Messages: 5
Registered: January 2016
Junior Member
Hello,

I would like to perform a cleanup -d on my cloned repository.

Git git = Git.cloneRepository()
                    .setURI(remotePath)
                    .setDirectory(new File(localPath))
                    .call();


...
git.clean().setCleanDirectories(true).call();

only deletes files in the direcory.
I also want to delete the user created folders, too.

Is there a way to do that? Smile

Greetings
Rob
Re: cleanup -d missing? [message #1720677 is a reply to message #1720370] Wed, 20 January 2016 09:35 Go to previous message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
are these folders ignored ? Then you also need to call setIgnore(false) to also clean ignored directories
Previous Topic:Change of SSH Agent
Next Topic:Eclipse and EGit: Can't export SSH
Goto Forum:
  


Current Time: Fri Apr 26 19:02:08 GMT 2024

Powered by FUDForum. Page generated in 0.02603 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top