I've been working on syncing folders with the EWS API, and it's super useful that it returns ChangeType for creations/updates/deletions in SyncFolderHierarchy. However, in the serviceObject, all I get is the folder object that's been updated. Is there a good way of finding which folder has been changed, given that the DisplayName and Id are altered in the update?
The best that I have in mind is creating a new folder with the updated folder's properties and then reconciling my folder list with the folder list EWS has (i.e., finding that the old folder is no longer in the EWS folder list and deleting it), but I would be surprised if there weren't a better way of doing it.
Related
I’m trying to use the Dropbox API to create a copy of an older revision of a file.
The use case is that the user browses his files, picks one and lists its revisions, picks one of the revisions and copies it to some folder in his account.
However, as far as I can tell, the copy method in the API only accepts a source path and there’s no way to specify a revision. I tried passing a revision in the path as is supported in download, but that fails.
Therefore, I could only think of the following workarounds:
Use restore to rollback the source file to the desired revision, copy it to the destination folder , and restore it back to the original revision
Download the desired revision and upload it to the destination folder
I don’t like solution #1 because if something goes wrong during the process, the user may end up with an older revision of the original file. Solution #2 does a redundant download and upload.
Can anyone suggest a better way to implement this functionality?
I need to checkout files from StarTeam 12.0 into my local folders.
The folder tree on starteam is like :
folder_top
folder_level_1a
subfolder_level_2
subfolder_level_3
folder_level_1b
folder_level_2
folder_level_3
But, after checking out all files in my specified local folder, all files (of folder_top) are located in one folder. All subfolders and their files are not checked out.
Any help would be appreciated.
Selecting your top folder, then selecting Check Out All from the File menu will check out all the files in that folder and descendant folders.
Also, note that clicking the All Descendants button will show all files in descendant folders as well as the selected folder.
Sounds like you might have checked out to a specific location. There is (or at least used to be) an option in the check-out dialog to override the location of the checkout, and in this case all of the files would be placed in that specific location. What you need to do in StarTeam is set your Alternate (not Default) Working Folder for the View, and then all of the files you check out will be put in the relative location based on the folder name. Do not override the working folders at the folder level, because this will cause your folder structure not to be mirrored. If you keep it simple and always set the Alternate Working Folder at the View and nowhere else, all your checkouts should go to the expected location. Don't override in the checkout dialog. Keep in mind, however, that even if you don't override the default working folders at the folder level, someone else on your team might. In those cases you can override their overrides by setting your alternate working folder to the folder name. This is one of the most painful and poorly designed aspects of StarTeam and always has been. Despite years and years of proposed enhancements to fix this, they have done nothing to address these issues. Be vigilant!
I have a big problem. One of my coworkers left the company yesterday and one of his projects went into my hands. We work for a company which set up a TFS for us to work together on one big project. He accessed the TFS by using his LiveID. When he left yesterday, he hasn't checked in his new/updated items and I forgot to do it today before I disconnected him and logged in with my account.
So basically I still have the updated solution on my local hard disk. But since my workspace is mapped to another folder, it actually downloaded old versions of our code files.
How can I copy the updated, not-checked-in items into my local workspace folder and check them in?
UPDATE: I have tried changing the local workspace folder by going to File --> Source Control --> Workspaces but I get another error telling me that the folder I'm trying to map (the one used by my ex-coworker) belongs to somebody else.
The easy way would be to log in as him, but a it is a Microsoft ID rather than an AD account you are kind of scuppered there. You o however have the files from disk. If you copy the files from his workspace and drop them over the top of your workspace TFS will detect the adds and edits for you. You will then have to go through and look for any deletes yourself..
a...make sure it builds, run all your unit tests, and then check in.
I have a complicated system of folders and I need to share 2nd and 3rd level folders with certain groups of users while maintaining the full path to the folder.
Is this possible? I tried but without success as if I share a folder eg. Project 1->Administration with the "Group Administration" on the client I only see the Administration folder and I need, instead, to replicate the entire structure.
Thanks for the support
With the current ownCloud sharing implementation this is simply not possible. Every shared item appears directly in the "Shared" folder of the user the file/folder is shared with.
Update: At the moment ownCloud (and I guess also nextCloud) allow a user to move around and rename files/folders shared with them. So even if you could enforce a certain structure on your users, they could always change it afterwards.
You could always report a feature request for it (or maybe there even already is one) here: https://github.com/owncloud/core/issues/ .
i just realized that all my groups in Xcode are ignored and all files i added to my project are copied into the Documents folder directly.
As i have several different types of files i want to keep them organized from the beginning.
So is there a way to predefine a folder hierarchy in the Documents folder of my app and place my files in the corresponding folders or do i have to move them manually on my first app launch?
regards and thanks for any help in advance!
Max
Nothing in your app automatically goes into the Documents folder when an app is installed. Your app must specifically copy or create files in the Documents folder. You are free to create any subfolder layout you want in the Documents folder. This must all be done at runtime.
If your goal is really to package your app so certain resource files are organized into a fixed folder structure in the app's resource bundle, then that is a different issue. This can be done but it requires that when you create the folders in your project, you don't simply make a group, you must create an actual folder reference. Folder references appear as blue folder icons in Xcode, not yellow like all other group folders. When you add files to your resources, the dialog that appears for the file chooser, be sure to select "Create Folder References for any added folders" instead of the "Create groups for any added folders".