Skip to content

Commit

Permalink
Fuse uses rel path instead of abs
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenthoma committed Sep 5, 2012
1 parent cd179f7 commit 020cf9d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions doitlive/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,25 @@
APP_SECRET = "af33a3wtka2t8tc"


def start_service(full_path):
def start_service(relative_path):
"""Start the FUSE file system that mirrors a user's Dropbox.
@param full_path: Path to where the FUSE file system should be mounted.
@type full_path: String
"""
dropbox_adapter = dropbox_adapter.DropboxAdapter(APP_KEY, APP_SECRET)
dropbox_adapter.login()
full_path = os.path.abspath(relative_path)
dropbox = dropbox_adapter.DropboxAdapter(APP_KEY, APP_SECRET)
dropbox.login()

decorated_dropbox_adapter = decorators.DropboxAdapterPathDecorator(
dropbox_adapter,
decorated_dropbox = decorators.DropboxAdapterPathDecorator(
dropbox,
full_path
)
decorated_dropbox_adapter = decorators.DropboxAdapterCachingDecorator(
decorated_dropbox_adapter)
decorated_dropbox = decorators.DropboxAdapterCachingDecorator(
decorated_dropbox)

fuse.FUSE(fuse_adapter.FuseAdapter(
decorated_dropbox_adapter),
decorated_dropbox),
full_path,
foreground=True
)
Expand Down

0 comments on commit 020cf9d

Please sign in to comment.