fileutils Questions
2
I'm getting a strange error where the parameter I supply to a method complains that it's not a directory but it IS in fact a directory with files in it...I don't understand what's wrong...
Topleve...
3
I'm currently experiencing an issue with my new rails application, more specifically:
Rails 5.2.0
Ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-darwin17]
rvm 1.29.4 (latest) by Michal Papis, ...
Hershey asked 14/7, 2018 at 2:27
2
I'm trying to delete some files on a windows machine using apache commons-io's FileUtils.deleteDirectory method (The version of the commons library is 2.4). Said method eventually calls the "f...
7
Solved
When trying to use FileUtils I get "cannot be resolved" error.
Then, how do I install FileUtils library to be able to use it in Eclipse? I see it is an Ant utility, but I am not sure how many ja...
1
How do I pass in user credentials for downloading files using apache commons FileUtils?
I'm using an authenticator as below but doesn't seem to be working. It does not even complain about bad cre...
V asked 17/9, 2017 at 0:0
0
Kind Attn Moderators: Before marking this query as duplicate, please note I have checked these questions...
java.net.SocketException: Connection reset
What's causing my java.net.SocketExceptio...
Ontina asked 14/12, 2019 at 5:31
2
Using FileUtils cp_r is usually how I copy directories, but I can't seem to exclude the base directory. This is what I wanted to work, but it doesn't:
FileUtils.cp_r "#{source_path}\\**", target_p...
1
Solved
How can I create a directory on Ruby via SFTP only when the directory doesn't exist?
I have the following code right now:
Net::SFTP.start( ip, id, :password => pass, :port=> port ) do |sftp...
Mavilia asked 22/5, 2015 at 5:2
2
How to use spring expression to read file content and put it into a string?
I would like to do the following.
For example,
@Value("classpath:myquery.sql")
File f;
@Value("#{org.apache.commons.i...
1
I want to change the permission of a folder were application database is being stored.
After searching on Google I found this:-
public int chmod(File path, int mode) throws Exception {
Class fil...
Fsh asked 20/8, 2014 at 5:40
2
Solved
Does anyone know any way of implementing progress bar for Apache's FileUtils.copyDirectory(File src, File dst)? I don't see anything helpful in JavaDocs and API. Seems like a common use case in dea...
That asked 11/7, 2012 at 7:5
1
I have a simple Java app that is trying to copy a file across the WAN (from Ireland to NY).
I recently modified it to use FileUtils because the native Java file copy was too slow. I researched and...
Dongola asked 27/8, 2013 at 13:36
1
Solved
Can someone explain me exactly (better if with examples) the meaning of the dereference_root option in FileUtils.cp_r and in other class method of the same class?
Thank you in advance.
Howland asked 3/8, 2013 at 21:20
1
I'm trying to copy a folder with all its subfolders from source to a destination folder.
The below code doesn't seem to do it. I'm able to copy just the files instead of subfolders by using
FileU...
1
Solved
According to df there is plenty (about 50G) space left on the device.
/ # df db
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mmcblk0p3 61812032 11308736 50503296 18% /db
Why might th...
Scenic asked 12/11, 2012 at 22:26
3
Solved
I would like to copy a file from one directory to another using Java and the FileUtils classes of apache org commons.
I wrote up a quick java program to test on my local system. Here is the code. ...
1
© 2022 - 2024 — McMap. All rights reserved.