i have done the link with my app in dropbox,my question how we use the mergDropboxCreateFolder pPath to create a folder? the faq have no example or something to start from there :(
If you're following the example stack, you simply utilise the stored path to the Dropbox folder that you're linked to (called sPath in that case) and use:
mergDropboxCreateFolder(sPath & "/" & "myFolderName")
This will create the folder in your local Dropbox folder and it will then be synchronised with your online Dropbox.
Related
Having installed onedrive on Ubuntu I have noted that the monitor function works quite well but does not maintain the directory structure on the remote onedrive system. I have two directories defined in the local onedrive folder. If I create or copy a document into one or other of these directories then onedrive monitor will upload it to the remote server but they appear at the top level and not in synced folder from which they came. Is there a way to configure onedrive to have it respect the source directory structure?
Having installed onedrive on Ubuntu
Hopefully you followed the correct installation procedure as documented here: https://github.com/abraunegg/onedrive/blob/master/docs/ubuntu-package-install.md
I have noted that the monitor function works quite well but does not maintain the directory structure on the remote onedrive system. I have two directories defined in the local onedrive folder. If I create or copy a document into one or other of these directories then onedrive monitor will upload it to the remote server but they appear at the top level and not in synced folder from which they came.
This is very odd - as, the folder that is containing those document is what should be replicated to OneDrive online.
Please follow the correct support process as detailed on GitHub: https://github.com/abraunegg/onedrive
I'm using node fs to create a directory and then watch it in my electron app. Users can then use that directory to upload documents. I use chokidar to watch the directory for documents. This all works locally; fs creates the directory inside my app folder. I can drag and drop files in, everything works.
This doesn't work, however, when I deploy the app to windows. I've searched the filesystem and cannot find where this folder was created.
What I'd like to do is create the folder on their Desktop. It would be even cooler if I could react to movements of the folder (e.g. the user moves it to Documents).
Is there a way to
Create the folder on their desktop (both osx and windows)
Listen for when the folder has been moved to another location.
Thanks!
Update
Found a way to find their desktop directory
const dir = Path.join(require('os').homedir(), 'Desktop/whatever');
Is there a way to do number 2?
getting myself in a twist here, trying to set up a directory on one website to store a number of files that need to be accessed as include files by a number of other websites in the same server (IIS).
I've created the directory on the main website, and then virtual directories on the other websites, all with paths set to that.
www.mainsite.com/cdn/test.asp ... opens OK
www.othersite.con/cdn/test.asp ... opens the test file on the mainsite as well
But when I try to use an include (virtual or file) it can't find the test file.
Using FileSystemObject / DirectoryExists function can locate the main cdn folder, mapping the path from the virtual folders.
But it doesn't recognise the file in that folder?
Any ideas on making this work... or suggestions for a better way to do it would be much appreciated!
Thanks
Matt
Just getting my head around the new Azure web sites feature and hitting my first obstacle. I'm deploying a PHP site which writes cache data to the file system, but the app is throwing an error because the folder it wants to write to does not have write permission. Is it possible to set permissions on folders or is this a no-no?
I can probably work round this but would like to know if it's possible.
Folder permissions cannot be set/customized. This means whatever location your app writes to should be under your site root.
Your site can only write to locations under C:\DWASFiles\Sites\[siteName]\VirtualDirectory0 and to the %TEMP% folder.
Two caveats here:
Stuff can't be written directly under VirtualDirectory0, you have to create a subfolder under there and place your files in that subfolder
The %TEMP% folder really is temporary! If your site instance goes down for any reason and is brought back up somewhere else then everything in your %TEMP% folder will be gone. Use it only for files that really are temporary.
Is the folder that the app is trying to write to under the site's folder?
It's my understanding that folder permissions cannot be set/changed. But I haven't seen anything from Microsoft that definitively says "yes" or "no" to that.
It should be possible using webdeploy.
However I don't think there is a way do it without manually setting up the webdeploy package - as described in the post http://blogs.msdn.com/b/azureappgallery/archive/2013/04/03/set-file-folder-permissions-for-your-content-on-azure-website-using-web-deployable-package.aspx.
As part of a larger batch script, I need to copy a directory from a TFS SharePoint site down on to the local drive. So something like:
copy "http://mySharePointSite/sites/MyProjectCollection/MyTeamProject/Shared Documents/Some Folder" C:\Temp
Any ideas how I would do this?
Thanks!
If you have local network access to the machine running SharePoint, you can use a UNC path to access the files directly.
\\servername\sitename\library\
The sitename is only used if you're actually accessing a sub site, otherwise it's just \\servername\library\
The path may be slightly different for team projects, but you should be able to find the correct path by browsing to it in Explorer.