Re: Move all files in directory



Hey,
On Wed, Sep 4, 2013 at 11:25 AM, Sam Bull <sam hacking sent com> wrote:
I'm having trouble writing the code to recursively move the contents of
a directory to another directory.

I'm trying to get a list of the contents so I can move them, but this
line always returns null, despite it being a directory with files and
sub-directories:
        nautilus_directory_get_file_list (dir)

Does anybody know why this returns null, instead of a valid GList? Or,
is there an easier way to move the contents of a directory?

iirc the recursivelyMovDir( ) function here [1] does that.

Meg

[1] https://git.gnome.org/browse/gnome-shell/tree/js/misc/fileUtils.js





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]