Unable to remove old GAMBAS3 Project folders
Posted
#1
(In Topic #1316)
Regular

I had been working with a Terabloom fan system and have three directories in the GAMBAS Files main directory…
/home/pi/GAMBAS FILES
<LIST>
- <LI>Terabloom_Slider_Test_V2</LI>
<LIST>
- <LI>Terabloom_V001</LI>
<LIST>
- <LI>Terabloom_V1</LI>
<LIST>
- <LI>Terabloom_01</LI>
The only file I want is the Terabloom_Slider_Test_V2 folder… the others are obsolete… they are not the only ones… but enough for this post…
If I click on Terabloom_01 and tell it RENAME, I can rename it to "Delete_01" with no problem… but if I right click and select MOVE TO TRASH, or I hit delete… it will not let me. It says "PERMISSION DENIED"
So what do i need to do in order to clean up my system and remove the old experimental or obsolete folders and files???
Thanks,
Jerry
Posted
Guru

# sudo rm -rf /path/to/folder
</HIGHLIGHT>
should force delete 'folder' and all contents
or
<HIGHLIGHT highlight="shell">
# sudo xdg-open /path/to/folder
</HIGHLIGHT>
should open file manager with root permissions
Posted
Regular

Does not seem to be working.
Any suggestions?
Posted
Guru

It's either…
$ cd '~/GAMBAS FILES'
$ sudo rm -rf ./DELETE_01 # note the full stop ./
or use the full path
$ sudo rm -rf '~/GAMBAS FILES/DELETE_01'
start the path with ./ for current dir
/ is the root of the system not your current dir
./ is current dir
../ is parent dir.
~ is home dir
Posted
Guru

sudo xdg-open $HOME
or
sudo xdg-open ~
should open a file browser, you can use the mouse from then on.
Posted
Regular

I found out something odd… when using by Linux desktop I can just delete folders and copy into them normally. But on the Raspberry Pi I can't delete unless I use this command line… and I can't copy things into the folder unless it is open in GAMBAS and I drag into it from another instance of the file menu.
I'm wondering what the difference is… and if it is possible to make the file system on the Raspberry Pi work globally like the desktop???
Thanks for your help!
Jerry
Posted
Trainee
try:
Code (gambas)
Look at the column with permissions and the owner. You might find that you need to change the ownership of the directory to yourself or add proper permissions. You can do this by:
Or, if you want to give full permissions (don't recommend this for everything):
Code (gambas)
These commands should help you access the directory without needing to use sudo rm -rf or dragging files in GAMBAS. Hope this helps somehow :geek:
1 guest and 0 members have just viewed this.



