Re: Fwd: Re: Trash system
- From: Roberto Alsina <ralsina conectiva com ar>
- To: David Faure <david mandrakesoft com>
- Cc: gnome-kde-list gnome org
- Subject: Re: Fwd: Re: Trash system
- Date: Thu, 14 Dec 2000 17:46:55 -0300 (ART)
On Thu, 14 Dec 2000, David Faure wrote:
> In CFM there's only one trash folder per user. So if you move files to the Trash from
> another filesystem (another partition, for example), we do physically move all the file
> hierarchy. Therefore, a free space check is done before any file writing occurs. David,
> answering your remark about no portable way of checking free space: I guess there is one.
> What we do is popen("df","r") and parse the output of df command.
Well, that's portable the hard way :-)
Each unix variant has a slightly different 'df' output (and/or arguments)
This is a nice small niche: a "libdf" to handle this thing sure would be
useful for every file manager author.
("\''/").__..-''"`-. . Roberto Alsina
`9_ 9 ) `-. ( ).`-._.`) ralsina conectiva com ar
(_Y_.)' ._ ) `._`. " -.-' Director técnico
_..`-'_..-_/ /-'_.' Conectiva SA
(l)-'' ((i).' ((!.' Buenos Aires - Argentina
KDE Developer (MFCH)
"Those who serve the revolution plough the sea" Bolivar
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]