~alecu/ubuntuone-client/ignore-in-close-write-in-dirs

« back to all changes in this revision

Viewing changes to ubuntuone/platform/linux/__init__.py

- Refactor platform, to move remaining modules inside windows and linux folders.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# ubuntuone.platform.linux - linux platform imports
2
 
#
3
 
# Copyright 2009-2012 Canonical Ltd.
4
 
#
5
 
# This program is free software: you can redistribute it and/or modify it
6
 
# under the terms of the GNU General Public License version 3, as published
7
 
# by the Free Software Foundation.
8
 
#
9
 
# This program is distributed in the hope that it will be useful, but
10
 
# WITHOUT ANY WARRANTY; without even the implied warranties of
11
 
# MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR
12
 
# PURPOSE.  See the GNU General Public License for more details.
13
 
#
14
 
# You should have received a copy of the GNU General Public License along
15
 
# with this program.  If not, see <http://www.gnu.org/licenses/>.
16
 
#
17
 
# In addition, as a special exception, the copyright holders give
18
 
# permission to link the code of portions of this program with the
19
 
# OpenSSL library under certain conditions as described in each
20
 
# individual source file, and distribute linked combinations
21
 
# including the two.
22
 
# You must obey the GNU General Public License in all respects
23
 
# for all of the code used other than OpenSSL.  If you modify
24
 
# file(s) with this exception, you may extend this exception to your
25
 
# version of the file(s), but you are not obligated to do so.  If you
26
 
# do not wish to do so, delete this exception statement from your
27
 
# version.  If you delete this exception statement from all source
28
 
# files in the program, then also delete it here.
29
 
"""
30
 
Linux import for ubuntuone-client
31
 
 
32
 
This module has to have all linux specific modules and provide the api required
33
 
to support the linux platform."""
34
 
 
35
 
platform = "linux"
36
 
 
37
 
 
38
 
from ubuntuone.platform.os_helper import (
39
 
    access,
40
 
    allow_writes,
41
 
    can_write,
42
 
    get_path_list,
43
 
    is_link,
44
 
    is_root,
45
 
    listdir,
46
 
    make_dir,
47
 
    make_link,
48
 
    move_to_trash,
49
 
    native_rename,
50
 
    normpath,
51
 
    open_file,
52
 
    path_exists,
53
 
    read_link,
54
 
    recursive_move,
55
 
    remove_dir,
56
 
    remove_file,
57
 
    remove_link,
58
 
    remove_tree,
59
 
    rename,
60
 
    set_application_name,
61
 
    set_dir_readonly,
62
 
    set_dir_readwrite,
63
 
    set_file_readonly,
64
 
    set_file_readwrite,
65
 
    set_no_rights,
66
 
    stat_path,
67
 
    walk,
68
 
)
69
 
from ubuntuone.platform.linux.logger import (
70
 
    setup_filesystem_logging,
71
 
    get_filesystem_logger,
72
 
)