Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tar.gz decompression fails if folder name contains spaces #84

Open
ghost opened this issue Mar 17, 2021 · 0 comments
Open

tar.gz decompression fails if folder name contains spaces #84

ghost opened this issue Mar 17, 2021 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 17, 2021

Hello, I'm currently working with your lib and I must say I love it, it is really easy to use. Unfortunately, I've found that if one of my folder inside the .gz archive contains spaces inside its name, it fails.
Here's the error :

Exception in thread "main" java.io.FileNotFoundException: C:\Users\c82rmun\Documents\Infra_SUD_tomcat_MSA_13_LogsGedWkf_2021-03-16\.\GDG49A0_GDGDDESUPDOC  \GDG49A0_GDGDDESUPDOC  .13.01.log (Le chemin d’accès spécifié est introuvable)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(FileOutputStream.java:291)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:234)
	at java.base/java.io.FileOutputStream.<init>(FileOutputStream.java:184)
	at org.rauschig.jarchivelib.IOUtils.copy(IOUtils.java:50)
	at org.rauschig.jarchivelib.CommonsArchiver.extract(CommonsArchiver.java:83)
	at org.rauschig.jarchivelib.ArchiverCompressorDecorator.extract(ArchiverCompressorDecorator.java:74)
	at Main.main(Main.java:64)

If you have any idea of how to fix this, i'd be thankful !
Thank you in advance

@ghost ghost changed the title tar.gz decompression fails if folder name contains spaces at the end tar.gz decompression fails if folder name contains spaces Mar 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants