Sync all file types
This commit is contained in:
parent
7e1aeb5a9f
commit
b00b9521c6
2 changed files with 0 additions and 14 deletions
|
|
@ -145,10 +145,6 @@ export class FileOperations {
|
|||
await this.fs.rename(oldPath, newPath);
|
||||
}
|
||||
|
||||
public isFileEligibleForSync(path: RelativePath): boolean {
|
||||
return isFileTypeMergable(path);
|
||||
}
|
||||
|
||||
private async createParentDirectories(path: string): Promise<void> {
|
||||
const components = path.split("/");
|
||||
if (components.length === 1) {
|
||||
|
|
|
|||
|
|
@ -356,16 +356,6 @@ export class UnrestrictedSyncer {
|
|||
syncSource: SyncSource,
|
||||
fn: () => Promise<T>
|
||||
): Promise<T | undefined> {
|
||||
if (!this.operations.isFileEligibleForSync(relativePath)) {
|
||||
this.history.addHistoryEntry({
|
||||
status: SyncStatus.ERROR,
|
||||
relativePath,
|
||||
message: `File ${relativePath} is not eligible for syncing`,
|
||||
type: syncType
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
this.logger.debug(
|
||||
`Syncing ${relativePath} (${syncSource} - ${syncType})`
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue