~ubuntu-branches/ubuntu/precise/ubuntuone-client/precise-201201132228

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2011-12-21 15:46:25 UTC
  • mfrom: (1.1.56)
  • Revision ID: package-import@ubuntu.com-20111221154625-ujvunri4frsecj2k
Tags: 2.99.0-0ubuntu1
* New upstream release.
  - Verify timestamp to avoid invalid auth failures (LP: #692597)
  - Files in new UDFs not uploaded due to filtering (LP: #869920)
* debian/patches:
  - Remove upstreamed patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
115
115
    os.rename(path_from, path_to)
116
116
 
117
117
 
 
118
def native_rename(path_from, path_to):
 
119
    """Rename a file or directory."""
 
120
    os.rename(path_from, path_to)
 
121
 
 
122
 
118
123
def recursive_move(path_from, path_to):
119
124
    """Perform a recursive move."""
120
125
    shutil.move(path_from, path_to)
205
210
        import gobject
206
211
        gobject.set_application_name(app_name)
207
212
 
 
213
 
208
214
def is_root():
209
215
    """Return if the user is running as root."""
210
216
    return not os.geteuid()