LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Puppy (https://www.linuxquestions.org/questions/puppy-71/)
-   -   Moving directory as well (https://www.linuxquestions.org/questions/puppy-71/moving-directory-as-well-4175527739/)

Fixit7 12-08-2014 08:17 PM

Moving directory as well
 
I am using this as a custom action for Thunar.

But it is moving the directory also.

How can I stop that from happening.

Code:

mv %F %D /mnt/sdb1/Linux_Files/

Ser Olmy 12-08-2014 08:48 PM

I don't know the first thing about Thunar, hence I have no idea what %F or %D may represent in this context, but:
Code:

mv foo bar
...will move foo to bar. If both are directories, the former will end up as a subdirectory of the latter. However:
Code:

mv foo/* bar
...will move all items (files and subdirectories) in foo to bar, but the directory itself (foo) will not be moved.

In other words, you may want to add /* to the parameter representing the source directory.

Fixit7 12-08-2014 09:36 PM

Thanks very much.

This did the trick.

mv %f %d/* /mnt/sdb1/Linux_Files/


All times are GMT -5. The time now is 03:29 AM.