Rar. File

0 views
Skip to first unread message

Leola

unread,
Aug 3, 2024, 5:52:56 PM8/3/24
to gnathridangchand

I am working for some weeks with UiPath.
I would like to create a robot that goes throw a file where are a huge amount of .rar files.
It should make with the program 7zip these .rar files to .rar.zip files.
Could someone provide me a code?

Fine
Copy this path and paste in your file explorer and check whether it is taking us to that folder
If this folder path is correct it will go or it will not
By that way we can validate this
Cheers @artem1

Happy with decision, except for one thing: I can't find a way to store files sorted. Order of files is important as I plan to query archive and results should be ordered.
My file structure is like this:

so folders represent years and files inside are numbered. Using ls, tar or any program lists files as expected.If I try to create non-recursive rar archive (i.e. compress files only in folder 2000), files are stored sorted, but if I try to add files recursively (rar a -r) then files are messed up.

The rar recursive switch -r reads the file names in the order that they appear in the dirent struct (man readdir). So the only way that you could change the order that rar packs the files would be to manipulate the order of the files in the directory file structures (usually the creation order) before calling rar. You could do this with a directory editor, with the caveat that some file system types might change the order of the files in the directory structure as part of their garbage collection or optimization.

The reason this was useful to me is that I was creating a multipart archive and uploading it for a backup. If I only want a file or folder or 2 then I can simply get the relevant parts and avoid downloading the whole thing. Confident that the contents will be properly grouped.

I installed unrar, but I realize in the right click menu of PcmanFM there is no "extract here" option for rar files, I can do it in the CML, but I have a lot of rar, zip files to manage, that I get tired of using CML, I search the forum and Google, but have not really find any usful information.

Some one please help me, how to add "extract here" option to the right click menu of pcmanfm for ".rar" files?
Do I need to edit some configuration file, or do I need to install some file-extract application, like Xarchiver?
Thanks a lot!
:)

xarchiver is a great program. Its what I use with pcmanfm. You still need to install the programs to decompress different archives though. For rar, its a program called unrar.
sudo pacman -S unrar

You can compile pcmanfm so that it has context menu entries Extract here & Extract to for both rar files and 7zip files. I've had mine like that for quite a while. I got the info from this page:-

By default, pcmanfm will not extract/create 7zip and Rar archives. Extracting rar archives is already implemented but not enabled by default while the ability to extract 7z archives is not implemented at all. To enable the extraction of rar and 7zip archives and the creation of 7zip archives open src/ptk/ptk-file-archiver.c:

NB. the newly compiled pcmanfm will be found in this directory /usr/local/bin - I moved mine to /usr/bin to copy over the old one & it all worked fine. Also make sure you remember to install unrar and p7zip

c80f0f1006
Reply all
Reply to author
Forward
0 new messages