Programming :: Delete Folder Not Empty C++?

Dec 5, 2009

I'm using rmdir(), and everything goes ok if the directory is empty, ?how can I remove the entire tree when i have other files or directories in the folder that I want to delete?I've read about using "system(rm....)" but i REALLY want to do this without it, is it possible?

View 4 Replies


ADVERTISEMENT

SUSE / Novell :: Delete (empty) Tmp Folder In 11.2

Jan 29, 2010

I have tried to empty the root /tmp folder but instead to empty it I , as it seems, deleted it with rm -rf /tmp as su. Now SUSE does not start anymore.

1. how to repair that and

2. how to empty the tmp fplder.

View 5 Replies View Related

Ubuntu :: Cannot Delete Or Empty .Trash-1000 Folder?

May 5, 2010

Straight to the problem on my [Ubuntu 9.10].I cannot delete or empty my .Trash-1000 folder on my flash drive. I tried changing permission with chmod but no way, I cannot empty the folder via the Ubuntu main trash option 'Empty Trash'. I read a bunch of threads but no way.Do you know a solution that works to this problem?Even further. Do you know a way to tell nautilus to avoid using that folder in my USB devices and use instead the normal trash folder on my system?

View 5 Replies View Related

Fedora :: Allow User To Save/edit/delete Documents In A Folder But Not Delete That Folder?

Sep 6, 2011

Recently I setup a system for a non-technical user. He is only using Firefox, Pidgin and OpenOffice for about 2 hours a day. I have created a folder "/home/jim/myFiles" where he can save his document files. But Jim has accidentally deleted his myFiles folder on 2 occasions. He had intended to delete a file in that folder. Is there a way to lock the folder so that the user and create/read/write documents in that folder but not delete the folder itself?

View 14 Replies View Related

Ubuntu :: Create Folder',and Results In An Empty Folder Being Created On Desktop?

Oct 29, 2010

I have this nasty habit of refreshing desktop in a quick succession by right-clicking and selecting 'Refresh',on my XP system at office.(And,iam sure most of us do the same).With Ubuntu,if a right-click on desktop slowly and select 'align by...',it simulates the XP refresh action as explained above.But,if i perform the same action rapidly,it takes this first option from right-click context menu,which is 'Create Folder',and results in an empty folder being created on desktop.I tried double right-clicking and again it created an empty folder.Is there any workaround to handle this.I mean:Can the right-click context menu items be shuffled so that the 'Create Folder' option is moved from 1st place

View 9 Replies View Related

Ubuntu :: Folder Wont Delete \ Whenever Try To Press Delete Noting Happens?

May 9, 2010

SO after using Testdisk to recover some images, the folders recup_dir.1 & 2 have saved in my FIle System area, when ever I try to press delete noting happens. I have also tried rm -f -rrm -f -fIt still dont delete, I have also deleted my user account and made a new one, but the files are still there.

View 4 Replies View Related

General :: How To Delete All Empty Folders

Jun 7, 2010

I just had a bad experience with a server, and now i have a 17GB lost+found. It appears a lot of the stuff in there are folders which are empty. Since those really serve no purpose as far as recovering data from what I can tell, is there a slick way to delete just the empty folders from my /data/lost+found folder, leaving me with just the stuff I truly need to look through?

View 3 Replies View Related

Ubuntu :: Banshee / All IPod 5G-music Is Displayed Under Video Folder / Music Folder Is Empty

Mar 20, 2011

At the moment I use Rhythmbox to acces my music and my iPod 5G. I would however like to use Banshee, but in Banshee all my iPod 5G-music is displayed under the video folder, while the music folder is empty. Any idea why?And also I have several albums with different artists on them, which gets spread out on i.e. 10 single albums even though they belong to the same album. This happens - as far as I can tell - after I've accessed the iPod from Rhythmbox (which is part of the reason why I wanna use Banshee).

View 1 Replies View Related

General :: How To Delete Empty Lines In OpenOffice Calc

Jun 17, 2011

How can I delete empty lines in OpenOffice Calc?

View 2 Replies View Related

Ubuntu Servers :: Samba - Access Folder To Delete Or Restore From The Recycle Bin Folder

Apr 24, 2010

I'm using ubuntu server 9.10 for a home build NAS. Everything is working great just have one more thing to figure out. I have Samba set up to access my files and I set up a recycle feature so anything deleted will get moved to a Recycled folder. (I learned this the hard way after hitting delete key by accident while browsing the shares in windows. Lost 100 GB of data)

Now it is for the most part working but the permissions on folders isn't getting set right. If I delete a file in a share I can go to Recycle bin folder and delete the file for good. But if I delete a folder I can not access that folder to delete or restore from the Recycle bin folder. I have to chmod the folder before I can do anything with it. Anything I can change to get folders deleted via windows to have the right permissions when it is moved to the Recycle bin folder?

[Code]///

View 1 Replies View Related

Ubuntu :: Hidden Cache Folder In Home Folder - Safe To Delete?

Jun 8, 2011

upon browsing the home folder in my ubuntu system, i came across a hidden cache folder..

it occupied around 700 mb of space..and im falling short of space..

can i delete the contents in the folder? are they safe to delete?

View 5 Replies View Related

Ubuntu :: Delete Remaster Folder From Home Folder?

Jun 13, 2011

I have Ubuntu Jaunty 9.04 updated to 9.10 and have downloaded Remaster from Remastersys. I followed all of the instructions, which were simple enough. However, there must be some instructions missing as the process failed. Working with Remaster through Synaptic Manager, the iso was downloaded into my "home" folder into its own Remaster folder. It was not the iso, like you get when downloading a distro from the Internet, which downloads just an iso onto the Desktop. Inside the folder were a bunch of empty files (I know, because I opened them) and an iso . At this point the Remaster instruction stop. They do not say what to do with the other files, or what they have to do with the iso of my Ubuntu layout. So, like any other iso (once I knew which one was the iso of my setup), I double clicked on it and it ran me through the process of accessing the DVD to burn it. Which I did. I tested it and it failed with some kind of message to the effect that certain files were missing or it could not read it. So, I thought, I would have to do the 'hunt and peck' method and experiment a few times like I did with the ordinary distro downloads until I get it right. But first, I would have to dump the Remaster folder in the "home" folder since it took up so much space on my hard drive. Wrong! I come to find out it is in something called "root" and that I do not have permission to do anything with it but "copy" it. Great. Just great! Now what do I do. I tried to change permissions, but was not allowed to do that either. The only thing I could think of - and dread - was the idea of having to wipe my hard drive and go through the whole reinstall procedures, which takes me days, just because Remaster has locked itself into my system - and there is no 'back door' to get out of it.

View 9 Replies View Related

Ubuntu :: System Shows Folder As Empty?

Jun 25, 2010

I have a compaq laptop with a hard disk separated in three partitions:Partition 1: Ubuntu 9.04Partition 2: Windows XPPartition 3: DataI usually work 95% of my time with Ubuntu, but store all my data in the data partition, so the information is always available no matter if I work under Windows or Ubuntu.The system has been working perfectly well for several months, but a couple of weeks ago I detected that some subfolders are shown as empty, but I know that there are several files on them (mostly pdf files document-scanned). When I use windows, all the files are shown correctly. In other folders, the system shows some files, but not all of them. (again mostly PDFs are not shown).My Ubuntu system is fully updated. The data partition is in NTFS format. Linux is EXT4. Windows is NTFS again.I would appreciate to know if any of you guys have detected a similar problem and if so, how to solve it.

View 6 Replies View Related

Ubuntu :: Mount Into A Non Empty Folder / Achieve This?

Jul 19, 2010

I need to do the following things and googling didn't help much:

1.mount a volume(or windows share, whatever) into a non empty folder
2.both the original content of the folder and the content of the newly mounted volume is accessible
3.updated and newly created files can be written to the mounted volume or the original folder determined by something like a switch at mount time
4.if files with same names exist both in the folder and on the volume, then which file to be presented to the OS is determined by their last modified date/time.

any one can give a walk-through on how to achieve this?

View 5 Replies View Related

Fedora :: Disappearing Files - Open A Folder And It's Empty ?

Dec 27, 2010

I've using RedHat/Fedora for years now, and every now and then I encounter the following situation :

I open a folder and it's empty. The folder was containing files and I'm 100% sure I didn't deleted them myself. Each time the folder is deep inside the hierarchy and is among other untouched folders. Sometimes it's a folder I never use, sometimes it's a folder I use almost everyday. The missing content is not large (a few regular files).

I'm currently running F13 but I've seen this behavior before on previous versions. This is kind of scary all my work is there and my backups are also done on a a linux backup server.

I'm puzzled, I cannot see any specificities to these folders, I had no crash or cold reboot, nothing I see can explain that. Could it be related to ext3?

View 2 Replies View Related

Ubuntu Installation :: Can't Log In After Reboot - Empty Home Folder

Dec 19, 2010

I recently installed Ubuntu 10.10 on my machine. I logged in and installed a few programs like wine. Everything went fine until I rebooted. Now, after I log in, it gives me 2 error messages: One about how it could not update ICEAuthority or something

Another about how usr/lib/libconf2-4/gconf-sanity-check2 returned status 256. Then, something else pops up about how Nautilus can't find or doesn't have permission to write to home/user/Desktop and ome/user/.nautilus. I tried booting in recovery mode and did a dir on /home, but nothing showed up, which makes me think that they somehow disappeared or they aren't being shown.

View 2 Replies View Related

Ubuntu :: IPhone Won't Mount Anymore - Folder Is Empty

Mar 9, 2011

I have an iPhone 3GS that was mounting a couple of weeks ago but now does not. Looking in /mnt I see a folder for the phone but the folder is empty. Phone is listed when I perform

Code:
steveneddy@machine:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
[Code].....

Also of note - I took a couple of photos off of the phone at work using an XP machine - just browsing the folder in Explorer, no iTunes. I believe this is where the trouble started. I will monitor this thread the best I can through the week and weekend - I will do my best to post any terminal output or commands at the earliest possible opportunity.

View 1 Replies View Related

Ubuntu :: Fstab Mount Results In Empty Folder?

May 1, 2011

I've recently installed Natty and now I've got a problem mounting two of my partitions via fstab. This is what my fstab file looks like:

Code:
proc /proc proc nodev,noexec,nosuid 0 0
UUID=2ea65813-a227-405f-90d2-69598120808e / ext4 defaults,errors=remount-ro 0 1
UUID=6e4f2339-b796-484e-9473-804b4db1531e /home ext4

[Code].....

I CAN mount them by first executing sudo umount -a (which tells me that the two partitions in question cannot be unmounted, because they are not mounted) and then sudo mount -a (which correctly mounts the two partitions). The mount does not work, if I omit the umount command.

View 3 Replies View Related

Ubuntu :: Folder Appears Empty Even Though It Isn't. I/O Error On Ls Screenshots Included?

May 17, 2010

multiple issues started happening on a partition of mine. (probably whole installation and i haven't noticed since most of my files are on that partition)the most important one is that a certain folder appears to be empty even though it isn't. (screenshot "issue1")

the second issue is that files that are no longer on on the root folder of the partition (for example, lynx5.jpg on the screenshot "issue2") appear to be there. on "issue2" screenshot, it's the lynx image and the Gr_trees folder. removing them by deleting them doesn't work. moving there somewhere else makes them temporary gone - they reappear on reboot though. (the screenshots seem to be automatically converted to jpg when uploaded, if there is a problem you can find them here as well:[URL]..

edit : even though it's not the normal way to solve a problem : if reinstallation is definitely going to solve the problem, i have nothing against it.

View 7 Replies View Related

Ubuntu :: Unable To Delete The Folder

Jan 8, 2010

I have a Windows Network folder in my places under Network and it will not delete. How can i delete this?

View 1 Replies View Related

Ubuntu One :: Delete A Top Level Folder?

Jun 19, 2010

I'm using my free 2Gb of Ubuntu One space to back up some stuff and synch files between a laptop and desktop.

I synched a folder ok to try it out. Then I used the FAQ at

[URL]

to manually unsynchronise the folder as the right click option was greyed out.

But now I want to delete that folder from Ubuntu One using the Web site. The 'top level' folder does not have a 'delete' option. I've deleted everything under it but just want to get rid of the husk.

View 1 Replies View Related

Ubuntu :: Cannot Delete Folder - Not Found?

Aug 19, 2010

I've got a folder on my disk that I simply cannot interact with at all. It was created while extracting an archive. It has a special character in its name: "�". But all those other characters work fine. Can anyone give me a hint on how to delete the folder?Tried in terminal with rm -r which gives me an error:Code:rm: cannot remove `03 - Und die unertr_glichen Schmuggler/': No such file or directory

View 1 Replies View Related

Ubuntu :: Can't Delete A Folder - Permissions ?

Sep 24, 2010

I have a 500GB iomega portable HD. I used Gparted to split the drive into two partitions, a fat32 of roughly 400GB and an EXT4 partition of roughly 100GB.

On my EXT4 partition, there is a folder called lost+found. I can't delete it because I need to be root, yet my account has administrator priviliges (but I CAN rename the folder). I can't create other folders on this partition, nor can I copy-paste and files on there either.

Basically, that partition is unuseable. In the properties of the folder, it says that I am not the owner so I cannot change the permissions. (It is definitely MY hard drive)
All options are greyed out.

How do I give myself permission to use this EXT4 partition?

View 8 Replies View Related

Ubuntu One :: Can't Delete Folder - Does Not Exist?

Nov 14, 2010

I accidently selected the wrong folder to sync with ubuntu one. It has now added .u1conflict to all my files (around 8000 of them ) and now I can't stop the folder syncing. I've followed these instructions This just returns an error:

Code:
FolderDeleteError: DOES_NOT_EXIST (subscribed=, suggested_path=~/Music, generation=,
node_id=dc8be355-c4dc-4111-9650-b4744aeae2a4, volume_id=1897e926-212b-424e-87ee-

[code]....

View 4 Replies View Related

Ubuntu Installation :: Delete Folder Under C?

Feb 28, 2011

I am a newbie to ubuntu. I just have a simple question: I used wubi to install ubuntu and the installation procedure was perfect. One problem arose after installation, the c:/ubuntu becomes almost 30G! Can I delete it?

View 7 Replies View Related

Ubuntu :: Delete Folder From Windows?

May 19, 2011

I installed a program in /usr/share on Ubuntu 10.04, but the program was actually bigger than there was room on that partition. It gave me some trouble, because when I tried to delete the folder, it said it couldn't move it to the Trash. When I restarted, it won't let me log in Ubuntu again...

Is it possible to delete this folder (/usr/share/IDE_SE) from Windows? or some other workaround to delete this folder in Ubuntu?

View 5 Replies View Related

General :: Cannot Delete A Very Large Folder?

Oct 3, 2009

I have accidentally created a very large folder that contains probably more than a million files. I have tried to delete it using all of these methods:(1) rm -rf myfolder/(2) Using midnight commander trying to delete the folder(3) find myfolder/ -type f | while read -r; do rm -v "$REPLY"; sleep 0.2; done(4) find myfolder/ -type f -print0 | xargs -0 rm -fThe find command would give an out of memory error, and other methods would just freeze the computer. I knew a few of the file names, but even if I tried to do ls myfolder/filename0, it hangs.

View 4 Replies View Related

General :: Function To Delete A Folder?

Dec 23, 2010

Is there any function to delete a folder which has few files in it ?I tried rimdir() bit it can only delete empty folders; unlink() can not delete directory entries. any other function ?

View 7 Replies View Related

Programming :: In Correct File Is Empty?

Jun 17, 2010

I am using embedded Linux. File open is successful. The file has all the permissions. It is present in current directory too. The size is about 27KB. But s.st_size says it is zero.

inputFileName = "abc.mp3";
FILE* inFile = NULL;
inFile = fopen(inputFileName, "r+b");

[code]...

View 2 Replies View Related

Programming :: How To Check For Empty Variables In PHP

Apr 26, 2010

I want to check if a MySQL db query will return an empty result - I first do this:

$query="SELECT * from <whatever" ;
$result=mysql_query($query) ;
$row=mysql_fetch_row($result) ;

Now how do I check if $row is empty or not? Will $row="" do the trick?

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved